Skip to content

Instantly share code, notes, and snippets.

@blogmastigado
Last active February 5, 2017 11:14
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 blogmastigado/ee9e9e306e9ef4d22dd94ff76ce6cb8a to your computer and use it in GitHub Desktop.
Save blogmastigado/ee9e9e306e9ef4d22dd94ff76ce6cb8a to your computer and use it in GitHub Desktop.
#After compile your PHP 7
wget http://xdebug.org/files/xdebug-2.5.tgz
#Descompressing
tar -xzf xdebug-2.5.tgz
#Go on directory and execute phpize
cd xdebug-2.5/
/opt/php7/bin/phpize
./configure --enable-xdebug --with-php-config=/opt/php7/bin/php-config
##Make and make install
make
make install
#Location of xdebug.so after 'make install' command /opt/php7/lib/php/20160303-debug/xdebug.so
#FOR FPM
sudo echo 'zend_extension="/opt/php7/lib/php/20160303-debug/xdebug.so"' > /opt/php/etc/php-fpm.d/20-xdebug.ini
sudo echo 'xdebug.remote_enable=1' >> /etc/php/7.0/fpm/conf.d/20-xdebug.ini
#FOR CLI
sudo echo 'zend_extension="/opt/php7/lib/php/20160303-debug/xdebug.so"' > /opt/php/etc/php-fpm.d/20-xdebug.ini
sudo echo 'xdebug.remote_enable=1' >> /etc/php/7.0/cli/conf.d/20-xdebug.ini
#RESTART
sudo /etc/init.d/php-fpm restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment