mac PHP配置

1、

mac 下给文件夹增加权限:

1 cd /etc
2 vim hosts
3 vim hosts
4 sudo chmod -R 777 /Users/houzhibin/javaself/code/php/shop/crmeb3/public
5 sudo chmod -R 777 /Users/houzhibin/javaself/code/php/shop/crmeb3/runtime
6 sudo chmod -R 777 /Users/houzhibin/javaself/code/php/shop/crmeb3/.env
7 sudo chmod -R 777 /var/folders/69
8 sudo chmod -R 777 /var/folders/69/8pg9gbbj47v42hr5q0k0h4v80000gn/T

chmod -R 777 /Users/houzhibin/javaself

解决问题:403,Server unable to read htaccess file, denying access to be safe

2、xdebug与php版本对标,php7.1对xdebug2.8.0;

3、Apache 服务启动:

bogon:etc houzhibin$ sudo apachectl restart
bogon:etc houzhibin$ sudo apachectl stop
bogon:etc houzhibin$ sudo apachectl stop

配置参考:

https://www.jianshu.com/p/a060d3e2885c

https://www.jianshu.com/p/bbfa3f65d600

4、 

现在装了xmapp

php配置在他里面了:

 

 php.ini 中添加下面代码:

[Xdebug]
zend_extension="/Users/houzhibin/Downloads/software/xdebug-2.8.0/modules/xdebug.so"
;自动跟踪,可关闭(关闭后提升性能)
xdebug.auto_trace=On
;性能分析,可关闭(关闭后提升性能)
xdebug.profiler_enable=On
xdebug.var_display_max_children=512
xdebug.var_display_max_data=2048
xdebug.var_display_max_depth=8
xdebug.idekey="PHPSTORM"
xdebug.remote_enable=1
xdebug.remote_enable=on
xdebug.remote_host="localhost"
xdebug.remote_port=9001
xdebug.remote_handler=dbgp

www.beicaiduo.com
原文地址:https://www.cnblogs.com/hoge66/p/11871657.html