我试图让Apache在我的约塞米蒂计算机上运行,但当我试图访问本地主机时,我得到了http://i.stack.imgur.com/ZzZzB.png。
我运行了一个,得到了以下内容
Angus-Mac:mysql root# apachectl configtest AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using Angus-Mac.local. Set the 'ServerName' directive globally to suppress this message Syntax OK
我做错什么了?有什么想法吗?
发布于 2014-12-08 04:05:49
取消注释ServerName并将其更改为域名解决了这个问题。
发布于 2014-12-04 20:37:22
将该文件夹的组权限更改为_www
sudo chgrp -R _www /Library/WebServer/Documents (all web content is now group _www)
chmod -R go-rwx /Library/WebServer/Documents (nobody other than owner can access web content)
chmod -R g+rx /Library/WebServer/Documents (all web content is now readable/executable/enterable by _www)然后重新启动apache,似乎httpd.conf中的用户与web目录中的用户不同。
我找到了解决方案here
请取消第212行( ServerName )中的httpd.conf注释,并将域www.example.com更改为您的域。重新启动apache
https://stackoverflow.com/questions/27302119
复制相似问题