Apache的啟動命令
sudo apachectl start
瀏覽器輸入:http://localhost,提示“It works”置蜀;
Apache服務器默認的web根目錄在:
/Library/WebServer/Documents
Apache的配置文件在:
/etc/apache2
停止 Apache:
sudo apachectl stop
重啟 Apache:
sudo apachectl restart
開啟PHP模塊
1.打開Apache配置文件:
sudo vim /etc/apache2/httpd.conf
2.去掉注釋:
#LoadModule php5_module libexec/apache2/libphp5.so
3.重啟Apache