Skip to content

Instantly share code, notes, and snippets.

@iamnnort
Created August 15, 2017 08:25
Show Gist options
  • Select an option

  • Save iamnnort/e00efc57e40a3d05bbb7a10e129e8a37 to your computer and use it in GitHub Desktop.

Select an option

Save iamnnort/e00efc57e40a3d05bbb7a10e129e8a37 to your computer and use it in GitHub Desktop.
XDEBUG
sudo apt-get install php5-xdebug
sudo php5enmod xdebug
sudo service php5.6-fpm restart
open /etc/php/5.6/mods-available/xdebug.ini & add lines:
zend_extension=xdebug.so
xdebug.remote_autostart=on
xdebug.remote_enable=on
xdebug.remote_handler="dbgp"
xdebug.remote_host="127.0.0.1"
xdebug.remote_port=9001
xdebug.remote_mode=req
xdebug.idekey="PHPSTORM"
sudo service apache2 restart
sudo apt-get install php-xdebug
sudo phpenmod xdebug
sudo service php7.0-fpm restart
open /etc/php/7.0/mods-available/xdebug.ini & add lines:
zend_extension=xdebug.so
xdebug.remote_autostart=on
xdebug.remote_enable=on
xdebug.remote_handler="dbgp"
xdebug.remote_host="127.0.0.1"
xdebug.remote_port=9001
xdebug.remote_mode=req
xdebug.idekey="PHPSTORM"
sudo service apache2 restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment