LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-07-2005, 06:02 PM   #1
namboi
LQ Newbie
 
Registered: May 2005
Posts: 7

Rep: Reputation: 0
Failed Httpd restart


Hello,

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

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

Can someone please give me some direction

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

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

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

#ServerName new.host.name:80

Should i change

#ServerName new.host.name:80 -> #ServerName mydomain.dyndns.org:80?

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

Original Poster
Rep: Reputation: 0
here are some more settings:

192.168.0.100 = Linux box lan IP from router
55.66.77.88 = 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.
127.0.0.1 localhost.localdomain localhost
192.168.0.100 whatever.dyndns.org
# 55.66.77.88 whatever.dyndns.org


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: 192.16.190.100 Name:whatever.dyndns.org Aliasesblank)
 
Old 05-07-2005, 07:38 PM   #5
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,276

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

ServerName whatever.dyndns.org

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 127.0.0.1 -- 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, 08:23 PM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally posted by namboi
#ServerName new.host.name:80 -> #ServerName mydomain.dyndns.org:80
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.
 
  


Reply


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


All times are GMT -5. The time now is 10: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration