我一直在閱讀關於這個問題,並嘗試了很多東西,但似乎沒有人爲我工作。在對XAMPP非常沮喪之後,我試圖使用已安裝的apache(以及php和mySQL)在本地設置開發環境。Mac OS 10.8:apache退出代碼1
每當我做:
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地址是在3號線在那裏,我想,也許這就是問題的根源?如果任何人都可以給我任何可能有用的建議,那會很棒。
謝謝!
除了我的'-t'產生'Syntax OK'之外,還有同樣的問題 –