Tuesday, July 31, 2012

apr_sockaddr_info_get() failed


I was trying to start apache from a VM. I am getting the error below:


[root@shizune ~]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: httpd: apr_sockaddr_info_get() failed for shizune.tes.org
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
                                                           [  OK  ]



 The solution for this problem is problem is too simple just try the following steps: 

 1. Modify the apache configuration file. 


[root@shizune ~]# vi /etc/httpd/conf/httpd.conf 

 2. Just add the following line.

ServerName localhost [ localhost will be the servername. ] 

 3. Restart apache. 



[root@shizune ~]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
[root@shizune ~]#

No comments:

Google