close

1. 用terminal 重新啟動apache

sudo apachectl restart

2. safari 網址輸入localhost

無法啟動?

3. debug

apachectl configtest

AH00526: Syntax error on line 20 of /private/etc/apache2/extra/httpd-mpm.conf:

Invalid command 'LockFile', perhaps misspelled or defined by a module not included in the server configuration

似乎有指令或是模組認不到,可能是mapping的問題

4. solution 

把mapping file還原

cd /etc/apache2/extra

sudo cp httpd-mpm.conf~orig httpd-mpm.conf

5. 重新啟動

sudo apachectl restart

sudo apachectl configtest

Syntax OK

再次於safari 輸入localhost

就可以看到成功畫面 

It works!

 

 

 

 

 

 

全站熱搜
創作者介紹

quantum2nd 發表在 痞客邦 留言(0) 人氣()