在 Primary Vagrant 上禁用 XDebug

Disabling XDebug on Primary Vagrant

有什么 simple/correct 方法可以在 Primary Vagrant 框中禁用 Xdebug 吗?

我尝试在 /manifests/custom/php.pp puppet 文件中设置 xdebug PHP.ini vars,但没有成功。也没有运气评论 /manifests/init.pp 中的 xdebug 行。

还有其他建议吗?

查找:'xdebug.ini'

/etc/php/7.0/cli/conf.d/20-xdebug.ini
/etc/php/7.0/fpm/conf.d/20-xdebug.ini
/etc/php/mods-available/xdebug.ini

然后用';'评论

;zend_extension=xdebug.so

然后重启你的 nginx 服务器

sudo service nginx restart