Could not reliably determine the server's fully qualified domain name for MacBook

邮差的信 提交于 2019-11-29 01:42:57
Suresh

Finally, I solved this by updating ServerName localhost:8080 on file /usr/local/etc/apache2/2.4/httpd.conf. It was a differnt httpd.conf file which I didn't knew about it.

Also, for Apache start/restart/stop following command sudo /usr/sbin/apachectl start works for me.

As per message:

Set the 'ServerName' directive globally to suppress this message.

You need to identify httpd.conf Apache configuration file by:

apachectl -t -D DUMP_INCLUDES

then edit it and uncomment the line with ServerName (make sure it has the valid server name). E.g.

ServerName localhost

open file httpd.conf

vi /etc/httpd/conf/httpd.conf

add to first line

ServerName localhost

systemctl restart httpd

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!