关闭xdebug

29 篇文章 0 订阅
18 篇文章 0 订阅

To disable xdebug for PHP-FPM and CLI (all use cases, in fact):

sudo php5dismod xdebug
sudo service php5-fpm restart

To disable xdebug specifically for PHP-FPM:

sudo php5dismod  -s fpm xdebug
sudo service php5-fpm restart

The “SAPI” fpm (defined with -s fpm) relates directly to modules found in /etc/php5/fpm/conf.d. CLI-specific modules are found in /etc/php5/cli/conf.d/

All modules inside of cli/conf.d and fpm/conf.d are symlinks (aliases) to modules in /etc/php5/mods-available.

This is Ubuntu/Debians convention as a means for enabling modules for each use case (each SAPI) indivisually. There is a separate php.ini configuration and separate set of modules loaded in CLI, FPM and (altho not applicable with Forge) Apache’s mod_php.

This will be the best way to accomplish your goal, as @dabernathy89’s reply doesn’t take into account Ubuntu/Debian’s way of handling the loading and configuration of modules and @thepsion5’s method will mean you have more code in your code base which is server-specific. (Not to trash your replies, but I think they’re likely to be more confusing! :D <3 )

如果你在debian,ubuntu上面用php7的话,稍稍有些不同:

$ sudo phpdismod xdebug
$ sudo service php7.0-fpm restart

https://laracasts.com/discuss/channels/forge/disable-xdebug

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值