Saturday, March 1, 2008

Apache doesn't start/restart

Issue : Apache doesn't start/restart

[root@ds194-238 root]# tail -f /var/log/httpd/error_log
[Sun Jun 06 12:32:00 2004] [alert] (22002)Name or service not known: mod_unique_id: unable to find IPv4 address of "ds194-238.hostname.com"
Configuration Failed!


Solution : Temporary Solution: Edit httpd.conf file. Search & comment this module mod_unique_id

Exact Solution :
1. This errors gets due to wrong hostname. if it is not resolving properly.

2. You can check hostname as following :

[root@ds194-181 root]# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=localhost.localdomain

Also you can check hostname using [root@ds194-181 root]# hostname

(You need to reboot if u change this )

3. Check whether it is resolving like following with host command:
[root@ds194-181 root]# host ds194-181.hostname.com
Host ds194-181.hostname.com not found: 3(NXDOMAIN)

You should get IP here.

No comments: