httpd can't start

CrazyVLS

Verified User
Joined
May 2, 2008
Messages
5
Hi my server got IP error and after DC fixed it i got error in direct admin ( some service can't be start ( httpd,named,proftpd ) when i tried to start httpd i got these following errors:
Code:
Starting httpd: [Thu Jun 18 22:48:59 2009] [warn] module php5_module is already loaded, skipping
[Thu Jun 18 22:51:11 2009] [error] (EAI 3)Temporary failure in name resolution: Could not resolve host name shared -- ignoring!
[Thu Jun 18 22:53:24 2009] [error] (EAI 3)Temporary failure in name resolution: Could not resolve host name shared -- ignoring!
[Thu Jun 18 22:53:24 2009] [warn] The Alias directive in /etc/httpd/conf/httpd.conf at line 200 will probably never match because it overlaps an earlier Alias.
httpd: apr_sockaddr_info_get() failed for server.vnwww.com
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
Anyone can help ??
Thank you
 
if you don't have a hostname, you need to give your server a good hostname and a domain name

echo name.example.com > /etc/hostname

/bin/hostname -F /etc/hostname

you have to edit your apache conf and, at the end of the file, add:

# added servername to avoid the could not determine fqdn error
servername myserver

place your server name in place of myserver.

incase of fedora or centos

also check this file

/etc/hosts

make sure it matches your hostname

edit /etc/hosts and add next line

::1 localhost localhost.my.domain your domain
127.0.0.1 localhost localhost.my.domain your domain

please remember to restart apache. hope it works for you!!

Cheers
Linu

http://Pearlin.info
The Unix/Linux Knowledgebase
 
Back
Top