MAC 搭建php开发环境

一、启动Apache

sudo apachectl start

sudo apachectl -v 可以查看到Apache的版本信息

此时在浏览器中输入http://localhost,会出现It works!的页面

sudo apachectl restart 重启Apache

如果你遇到这个问题:
** Forbidden
You don't have permission to access /untitled1/test.php on this server

**
应该修改Apache2 的httpd.conf