Difference between revisions of "Httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName"

From Kolmisoft Wiki
Jump to navigationJump to search
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
  #ServerName www.example.com:80
  #ServerName www.example.com:80


and change it to.
and change it to:


  ServerName localhost
  ServerName localhost
Line 10: Line 10:
Line is located in "### Section 1: Global Environment".
Line is located in "### Section 1: Global Environment".


in file /etc/httpd/conf/httpd.conf and restart httpd service again.
in file /etc/httpd/conf/httpd.conf
 
and restart httpd service again:
 
service httpd restart

Latest revision as of 12:51, 29 September 2015

This error is shown when starting httpd service. Solution is to uncomment line:

#ServerName www.example.com:80

and change it to:

ServerName localhost

Line is located in "### Section 1: Global Environment".

in file /etc/httpd/conf/httpd.conf

and restart httpd service again:

service httpd restart