when i try to do sudo apachectl start
it return this error
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using Dava-Erandas-MacBook-Pro.local. Set the 'ServerName' directive globally to suppress this message
what i've done is
adding a line containing ServerName 127.0.0.1 in /etc/apache2/apache2.conf
base on this link https://www.digitalocean.com/community/tutorials/apache-configuration-error-ah00558-could-not-reliably-determine-the-server-s-fully-qualified-domain-name
but it still returning the same error.
what should i do to get rid of this error?
我在这里评分最高的答案的评论部分发现了问题 我安装了 2 个 apache,一个是系统附带的,一个是我使用brew install httpd
的 运行brew uninstall httpd
时错误消失了
I brew install apache2 on mac when I run:sudo apachectl start
it shows error
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using Dava-Erandas-MacBook-Pro.local. Set the 'ServerName' directive globally to suppress this message.
what I have tried: 1,I added 'ServerName' in httpd.conf file, but it does not work. 2,I tried brew uninstall httpd, and it works!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.