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