You can set xdebug in php.ini with off value:

xdebug.remote_enable off
xdebug.remote_port 9000
xdebug.idekey PHP-XDEBUG

and turn on only .htaccess with directive:

php_flag   xdebug.remote_enable on
  • 14
Reply Report
    • The line php_value zend_extension=/usr/lib/php/modules/ is incorrect. It should read php_value zend_extension /usr/lib/php/modules/ which will not work either. You can not load a PHP extension in a .htaccess file.
      • 2
    • This does not disable xdebug completely, just remote debugging. Is there a way to disable it completely for the hosts where it's not needed? Usecase: the mere presence of xdebug makes it impossible to report errors to NewRelic

Warm tip !!!

This article is reproduced from Stack Exchange / Stack Overflow, please click

Trending Tags

Related Questions