Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
[root@cloud /]# /etc/rc.d/init.d/httpd start
Starting httpd: [Fri Jun 18 18:25:24 2010] [error] (EAI 3)Temporary failure in name resolution: Could not resolve host name yourhostname -- ignoring!
Warning: DocumentRoot [/www/your-domain/html] does not exist
Hi, nithinsha,
As it says - -- ignoring!, you can simply ignore this issue.
I suspect there might be some issues on the vhost configuration. It's the point why httpd cannot start.
what does error_log say? By default this file stored in /var/log/httpd/error_log*
1. AlucardZero is absolutely correct. You need to:
a) make sure the "DocumentRoot" you specified actually exists (and has correct permissions) on your filesystem
b) if you're using vhosts, make sure the DNS name of your virtual host is actually defined in DNS
2. There are many, many tutorials, FAQs and howto's available that describe how to do both of these things.
There *are* no simple "1,2,3", rote, cookbook instructions anybody can give you.
1. make sure the "DocumentRoot" you specified actually exists (and has correct permissions) on your filesystem
The error says that it doesn't, you haven't shown any attempt to verify that it does.
2. Make sure that the *DNS Name you specified in your VHost section* actually exists. If your vhost is for "moose", then try to ping "moose". If your "vhost" is for "moose.cloud.invign.net", then make sure you can ping "moose.cloud.invign.net", "cloud.invign.net" and "moose".
3. Try this diagnostic:
Apache -S command l
4. Look in "/var/log/httpd/error_log". You were asked to do this, and you haven't shown any attempt to try.
5. Consider if you really need a "vhost" in the first place? Maybe all you need is a simple configuration!
--------------------------------------------------------------------------[Sat Jun 19 18:16:51 2010] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sat Jun 19 18:16:51 2010] [notice] Digest: generating secret for digest authentication ...
[Sat Jun 19 18:16:51 2010] [notice] Digest: done
[Sat Jun 19 18:16:51 2010] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Sat Jun 19 20:29:14 2010] [notice] caught SIGTERM, shutting down
(21)Is a directory: httpd: could not open error log file /www/invign.com/logs/error_log.
Unable to open logs
(21)Is a directory: httpd: could not open error log file /www/invign.com/logs/error_log.
Unable to open logs
(21)Is a directory: httpd: could not open error log file /www/invign.com/logs/error_log.
Unable to open logs
(21)Is a directory: httpd: could not open error log file /www/invign.com/logs/error_log.
Unable to open logs
(21)Is a directory: httpd: could not open error log file /www/invign.com/logs/error_log.
Unable to open logs
(21)Is a directory: httpd: could not open error log file /www/invign.com/logs/error_log.
Unable to open logs
(21)Is a directory: httpd: could not open error log file /www/invign.com/logs/error_log.
Unable to open logs
------------------------------------------------------------------------
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.