[Solved] httpd:httpd:Could not reliably determine the server‘s fully qualif domain name,using ::1 for Se

In the process of building lamp environment, installing Apache reported an error: starting httpd:httpd :Could not reliably determine the server’s fully qualif domain name,using ::1 for ServerName


Edit server profile

vi /etc/httpd/conf/httpd.conf

Find the servername in the file www.example.com : 80 “change to” servername ” www.localhost.com : 80 ”
you can use ‘/’ to find (/ servername) www.example.com : 80)
and remove the previous # cancel comment

Set the server to boot

chkconfig httpd on

Restart Apache

/etc/init.d/httpd restart

Read More: