2016-05-01 18 views
2

我最近在Mac OSX El Capitan上升級到php56。現在我無法運行apache。無法連接到el capitan mac上的Apache錯誤AH00526:-c/-C指令行1上的語法錯誤:

我得到: -

This site can’t be reached 
localhost refused to connect. 

試圖運行時本地主機

的apachectl -k重新啓動命令給出錯誤說

httpd not running, trying to start 

當我運行命令的httpd -t -c它會拋出以下錯誤: -

AH00526: Syntax error on line 1 of -c/-C directives: 
Invalid command 'httpd.conf', perhaps misspelled or defined by a module not included in the server configuration 

apachectl configtest不會引發任何錯誤。 apache日誌中沒有日誌。

任何人都可以幫助我解決這個問題。如果你需要更多的細節,請告訴我。

+0

在升級時看起來像是Apache API中的一個衝突,請嘗試重新安裝Apache,順便說一句,這個問題應該在ServerFault上嗎? – SmasherHell

回答

0

明白了。這是因爲httpd.conf無法加載libphp5.so LoadModule php5_module libexec/apache2/libphp5.so如果我評論這一點。 Apache開始工作。

但它應該已經登錄了錯誤。不知道爲什麼它沒有記錄任何錯誤。

仍然無法弄清楚爲什麼libphp5.so在正確的路徑下不工作。