Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ServerName directive

Status
Not open for further replies.

blackeyrichards

Programmer
Feb 18, 2001
2
GB
I am having trouble when trying to run Apache. It gives me the following error:

APACHE.EXE: cannot determine local host name.
Use the ServerName directive to set it manually.

I have edited the http.cnfg file to include the line:
ServerName (but obviously containing my IP address.)

Unfortunately this seems to have no effect on the error message.
 
You need to set the Server Name to be the FQDN of your server - ie webserver.mydomain.com not your IP Address.

Hope this helps,
Paul
 
You *can* set your ServerName directive to your IP address, but you should use just the IP address, no other characters, such as ' It should be

ServerName 123.456.78.90

If you have a DNS server pointing to the hostname of your Apache system, then you would want to use the Fully Qualified Domain Name -- again, without the ' or any slashes. So if your system hostname was 'myserver' on the domain 'mynetwork.com', then it would be

ServerName myserver.mynetwork.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top