Question :
How to fix “Could not reliably determine the server’s fully qualified domain name” when starting apache httpd service ?
[root@centos64 ~]# service httpd start
Starting httpd: httpd: apr_sockaddr_info_get() failed for centos64.ehowstuff.local
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[ OK ]
Answer :
Step 1:
Update /etc/hosts and do server’s ip address resolvable to the fully qualified domain name(fqdn) or hostname.
[root@centos64 ~]# vi /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.2.62 centos64.ehowstuff.local
Step 2:
Restart apache httpd service :
[root@centos64 ~]# service httpd restart Stopping httpd: [ OK ] Starting httpd: [ OK ]
As always if you need any help you can reach us on twitter @ehowstuff or drop us a comment below. Jumping through archives page to read more articles..


Sign up for our daily email newsletter: