Could not reliably determine the server's fully qualified domain name, using xxx.abc.com for ServerName

When you are configuring your Apache setting, and it shows you the error below during configuration check via "apachectl -t" command.

"Could not reliably determine the server's fully qualified domain name, using xxx.abc.com for ServerName"

Please check on your httpd.conf for the "ServerName" variable, if you have not set it any or it has been commented. Try to uncomment this line as below:



#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
ServerName abc.com

#or just simple uncomment this line to use default value

ServerName www.example.com:80


Do a "apachectl -t" again, and your error should disappears.

No comments: