我一直在阅读这个问题并尝试了很多东西,但似乎没有一个对我有用。在对 XAMPP 感到非常沮丧之后,我尝试使用已经安装的 apache(以及 php 和 mySQL)在本地设置一个开发环境。
每当我这样做时:
sudo apachectl start
没有任何反应,控制台显示:
8/23/13 3:21:08.262 PM com.apple.launchd[1]: (org.apache.httpd[1086]) Exited with code: 1
8/23/13 3:21:08.262 PM com.apple.launchd[1]: (org.apache.httpd) Throttling respawn: Will start in 10 seconds
我已经尝试过最常见的建议,这似乎是为错误日志创建一个目录,然后 chmod 777 它。
如果我做:
sudo apachectl -t
我得到:
Warning: DocumentRoot [/usr/docs/dummy-host.example.com] does not exist
Warning: DocumentRoot [/usr/docs/dummy-host2.example.com] does not exist
httpd: Could not reliably determine the server's fully qualified domain name, using 10.5.120.124 for ServerName
Syntax OK
我看到我的 IP 地址在第三行,我想这可能是问题的根源?如果有人可以就什么可能有帮助给我任何建议,那就太好了。
谢谢!