[xdebug] zend_extension = <path to xdebug.so>
xdebug.idekey = "netbeans-xdebug"
xdebug.remote_enable = on xdebug.remote_host = localhost xdebug.remote_port = 9000 xdebug.remote_handler = dbgp xdebug.remote_mode = req xdebug.remote_cookie_expire_time = 7200 xdebug.profiler_enable = off xdebug.profiler_output_dir = /tmp xdebug.profiler_output_name = cachegrind.out.%p-%H-%R xdebug.profiler_enable_trigger = off
This can (without [xdebug]) be set in
/etc/php5/apache2/conf.d/20-xdebug.ini
or
/etc/php/7.0/apach2/conf.d/20-xdebug.ini
and restart Apache2 server:
sudo /etc/init.d/apache2 restart