LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-13-2013, 02:03 PM   #1
kiran.ursal
Member
 
Registered: Feb 2012
Posts: 36

Rep: Reputation: Disabled
Post 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

Last edited by kiran.ursal; 03-13-2013 at 02:20 PM.
 
Old 03-13-2013, 02:12 PM   #2
kbscores
Member
 
Registered: Oct 2011
Location: USA
Distribution: Red Hat
Posts: 259
Blog Entries: 9

Rep: Reputation: 32
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.
 
Old 03-13-2013, 02:32 PM   #3
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
but does http://localhost work?
 
Old 03-14-2013, 01:23 AM   #4
kiran.ursal
Member
 
Registered: Feb 2012
Posts: 36

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Habitual View Post
but does http://localhost work?
http://localhost also not working it displays blank page in web browser
 
Old 03-14-2013, 01:29 AM   #5
kiran.ursal
Member
 
Registered: Feb 2012
Posts: 36

Original Poster
Rep: Reputation: Disabled
Unhappy

Quote:
Originally Posted by kbscores View Post
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?
 
Old 03-14-2013, 09:16 AM   #6
kbscores
Member
 
Registered: Oct 2011
Location: USA
Distribution: Red Hat
Posts: 259
Blog Entries: 9

Rep: Reputation: 32
When you do
Code:
#service httpd status
Try making the "ServerName" 127.0.0.1 and see if that works.
 
Old 03-14-2013, 07:55 PM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
This doesn't look correct
Code:
localhost@.localdomain
There shouldn't be a leading dot in '.localdomain' AFAIK...
 
1 members found this post helpful.
Old 04-21-2013, 12:00 PM   #8
kiran.ursal
Member
 
Registered: Feb 2012
Posts: 36

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Starting httpd service---Error narsimha.v Linux - Newbie 1 01-17-2008 03:24 AM
problem in starting httpd service!! mhmo Linux - Server 1 03-17-2007 07:01 AM
starting httpd as service strimp099 Red Hat 10 04-12-2004 07:38 PM
Error Starting httpd Service - Please Help Speednow Linux - Newbie 0 05-24-2003 01:16 PM
httpd service not starting... F$CK!!! xgtr Slackware 1 08-20-2002 03:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration