LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   httpd service not starting (https://www.linuxquestions.org/questions/linux-newbie-8/httpd-service-not-starting-4175453939/)

kiran.ursal 03-13-2013 02:03 PM

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

kbscores 03-13-2013 02:12 PM

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.

Habitual 03-13-2013 02:32 PM

but does http://localhost work?

kiran.ursal 03-14-2013 01:23 AM

Quote:

Originally Posted by Habitual (Post 4910953)
but does http://localhost work?

http://localhost also not working it displays blank page in web browser

kiran.ursal 03-14-2013 01:29 AM

Quote:

Originally Posted by kbscores (Post 4910940)
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.

I check the server name it is not in commented,It is fine and I check /etc/hosts also that also contains the name/ip combo set.
everything is ok then why this problem is coming?

kbscores 03-14-2013 09:16 AM

When you do
Code:

#service httpd status
Try making the "ServerName" 127.0.0.1 and see if that works.

chrism01 03-14-2013 07:55 PM

This doesn't look correct
Code:

localhost@.localdomain
There shouldn't be a leading dot in '.localdomain' AFAIK...

kiran.ursal 04-21-2013 12:00 PM

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.