Address: http://digitaldeviation.com/articles/linux/apache-error-could-not-reliably-determine-the-servers-fully-qualified-domain-name
When starting Apache for the first time or after a networking change you get the following error:
Httpd: cocould not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
This message is more of a warning than error. if you check your running processes you will see the httpd process running. basically Apache is telling you that it doesn't know the host name of your server. this is a simple fix.
Note that the instructions below are for CentOS/Redhat. they may be similar for your distro. you will need to know your IP address and the host name for your server. I will use Server1.example.com as the host name and 192.168.20.100 as the IP address.
- Edit/etc/hosts using your favorite editor The contents shoshould look something like this:# Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost. localdomain localhost: 1 localhost6.localdomain6
Localhost6
- At the end of the file add:192.168.20.100 Server1.example.comThat's a [tab] between the IP address and the host name
- Save the file
- Restart the network services to apply your changesService network restart
- Restart ApacheService httpd restart
Http://www.wallpaperama.com/forums/how-to-fix-could-not-determine-the-servers-fully-qualified-domain-name-t23.html
127.0.0.1 localhost
123.123.123.123 hostname.domain.de hostname
The fix is to edit the conf file and add in the ServerName setting (as the error message requests). In other words,
Sudo vi/etc/apache2/httpd. conf
By adding the following string :,
# ServerName is to be specified to avoid warning during reload
ServerName MYSERVER