httpd service not starting
Respective sir ;
I have CentOS 6.02 on my system.When I try to start httpd service through shell or by gui mode that service fails to start It gives me message: root@localhost:/#service httpd start Starting httpd: httpd: apr_sockaddr_info_get() failed for localhost@.localdomain httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName [FAILED] root@localhost:/#/etc/init.d/httpd start Starting httpd: httpd: apr_sockaddr_info_get() failed for localhost@.localdomain httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName [FAILED] I dont no what is this exactly will you please help me Is it possible to reinstall httpd service or changig hostname |
In httpd.conf, search for "ServerName". It's usually commented out by default. Just uncomment it and fill it in. Make sure you also have the name/ip combo set in /etc/hosts.
|
but does http://localhost work?
|
Quote:
|
Quote:
everything is ok then why this problem is coming? |
When you do
Code:
#service httpd status |
This doesn't look correct
Code:
localhost@.localdomain |
Problem solved
When HTTPD is try to start that time it was unable to provide valid ssl certificate.SSL not get the correct certificate. Why it is happen because my cmos battery is ended due to this my system date is differant than current date so ssl certificate not valid which is provided by httpd. So I change my cmos battery and set my system date with current date and I make ssl certificate checking off by editing in ssl file. and my HTTPD service get start normally. |
All times are GMT -5. The time now is 11:52 PM. |