Skip to content

Instantly share code, notes, and snippets.

@Nilzor
Created October 19, 2016 18:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nilzor/6530f28c158ca072329e01f9afd0375b to your computer and use it in GitHub Desktop.
Save Nilzor/6530f28c158ca072329e01f9afd0375b to your computer and use it in GitHub Desktop.
PHP debugging intellij linux apache2
  • sudo apt-get install php5-xdebug
  • "PHP Web Application" run configuration backed by a "PHP Server" with XDebug set up. Run in debug mode.
  • This at the end of /etc/php5/apache2/php.in
[xdebug]
zend_extension="/usr/lib/php5/20121212/xdebug.so"
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
                              

apache2 restart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment