LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Correct Fix: httpd: Could not determine the server's fully qualified domain name.... (http://www.linuxquestions.org/questions/linux-server-73/correct-fix-httpd-could-not-determine-the-servers-fully-qualified-domain-name-870439/)

austinium 03-23-2011 05:41 AM

Correct Fix: httpd: Could not determine the server's fully qualified domain name....
 
Hi,
I get the following error while starting apache httpd

Code:

httpd: Could not determine the server's fully qualified domain name, using <Server's-ip-address> for ServerName
I googled it and have come across the following solutions, all of them involve changing the ServerName setting in httpd.conf:
  1. ServerName localhost
  2. ServerName www.example.com:80
  3. ServerName <ip-address-of-server>
  4. ServerName <hostname-of-machine/FQDN>

I am setting up httpd to be accessed from over a LAN, so i don't have a .com domain name.
I am thinking of going with the first option, it seems to be working...

i am hoping someone here could point out any possible issues this may cause.

Thanks in advance

corp769 03-23-2011 06:40 AM

You should be able to use just ServerName SERVERNAME. Also look at your /etc/hosts file and make sure everything is correct.

austinium 03-23-2011 06:47 AM

Quote:

Originally Posted by corp769 (Post 4300198)
You should be able to use just ServerName SERVERNAME. Also look at your /etc/hosts file and make sure everything is correct.

by SERVERNAME do you mean the machine's hostname?

Will using
Code:

ServerName localhost
cause any issues? i mean is it a wrong way to configure apache? i will be using the server Only on the LAN.

corp769 03-23-2011 06:54 AM

Since it is only on a LAN, technically you could, but I would use the machine's hostname rather than anything else.

austinium 03-28-2011 05:55 AM

thanks...i am using the machine's hostname :)

corp769 03-28-2011 12:24 PM

Cool, glad to hear you got it solved!

Josh


All times are GMT -5. The time now is 05:55 AM.