Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-07-2005, 05:02 PM   #1
LQ Newbie
Registered: May 2005
Posts: 7

Rep: Reputation: 0
Failed Httpd restart


My Httpd restart fails. I get the following error message:

starting httpd: httpd: could not determine the server's fully qualified domain name, using for ServerName

Can someone please give me some direction

THank you.
Old 05-07-2005, 05:28 PM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 245Reputation: 245Reputation: 245
What do you have set for the servername in the configuration?
Old 05-07-2005, 05:32 PM   #3
LQ Newbie
Registered: May 2005
Posts: 7

Original Poster
Rep: Reputation: 0
in my httpd.conf file this is what i have


Should i change

#ServerName -> #ServerName

I tried that and it didnt really work. so i just changed it back to default setting.
Old 05-07-2005, 05:52 PM   #4
LQ Newbie
Registered: May 2005
Posts: 7

Original Poster
Rep: Reputation: 0
here are some more settings: = Linux box lan IP from router = internet/cable modem IP

This is what my /etc/hosts file looks like

# do not remove the following line, or various programs
# that require network functionality will fail. localhost.localdomain localhost

I've also read on a post about the # neat command

This is what i have, all my fields are blank, WHAT and WHERE should i be filling in?

DNS (tab)
Hostname: ?
Primary DNS: ?
Secondary DNS: ?
Tertiary DNS: ?
DNS search path: ?

Hosts (tab)
IP: Aliasesblank)
Old 05-07-2005, 06:38 PM   #5
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
ServerName ought to be set to the name your Web server, in your case In this case, the # character at the beginning of the line signifies a comment, so you need to take that out and have just


Also, as you message states, the httpd start is not failing, it's just warning you that it couldn't find a good ServerName so it's just using -- this won't actually hurt anything although it may confuse some visitors who get 404s and other errors, as the ServerName is by default displayed on server generated error pages.
Old 05-07-2005, 07:23 PM   #6
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 245Reputation: 245Reputation: 245
Originally posted by namboi
#ServerName -> #ServerName
Removing the # in the front so its actually read would help.

#<--Means its either not configured or used for comments.

<-- No # means it will attempt to be read from the config file.

And you don't need to specify the :80 at the end on this part of your configuration, that's a few lines above in your configuration.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
httpd restart headache; netstat Swakoo Linux - Networking 1 10-25-2005 08:08 AM
Httpd Failed: BJMAC Linux - Newbie 9 12-20-2004 04:04 PM
deleted httpd.conf - apache still finds it after restart jordanthompson Linux - Software 1 10-16-2004 02:08 PM
httpd daemon needs frequent restart to work properly sushil_deore Linux - Software 0 09-16-2004 07:35 AM
Command to restart httpd service deWin Linux - Software 2 07-13-2004 06:17 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:12 PM.

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