站內搜尋

Saturday, October 3, 2015

[MAC] [架站] OSX 10.10 升級 10.11 後 PHP 開不起來的問題

step 1. 打開 httpd.conf
$sudo vim /etc/apache2/httpd.conf


step 2. 將下列項目前的#字號拿掉
LoadModule ssl_module libexec/apache2/mod_ssl.so
LoadModule rewrite_module libexec/apache2/mod_rewrite.so
LoadModule php5_module libexec/apache2/libphp5.so
Include /private/etc/apache2/extra/httpd-vhosts.conf

step 3. 重啟 apache
$sudo apachectl restart

No comments:

Post a Comment