Mac下搭建PHP服务器
打开终端
1、 输入 sudo vi /etc/apache2/httpd.conf
2、把167-170的前面#去掉即加载下面几个模块
1.LoadModule alias_module libexec/apache2/mod_alias.so
2.LoadModule rewrite_module libexec/apache2/mod_rewrite.so
3.LoadModule php5_module libexec/apache2/libphp5.so
4.LoadModule hfs_apple_module libexec/apache2/mod_hfs_apple.so
2.LoadModule rewrite_module libexec/apache2/mod_rewrite.so
3.LoadModule php5_module libexec/apache2/libphp5.so
4.LoadModule hfs_apple_module libexec/apache2/mod_hfs_apple.so
https://www.jianshu.com/p/ee1a70783329
https://jingyan.baidu.com/article/67508eb434539f9cca1ce4da.html