I had Xdebug installed with php7.0
Here's config /etc/php/7.0/fpm/php.ini
:
zend_extension = /usr/lib/php/20151012/xdebug.so
xdebug.remote_enable=1
xdebug.remote_port=9000
xdebug.profiler_enable=1
xdebug.profiler_output_dir="/home/user/xdebug/profiler"
Now I have installed php7.1 (and still need both versions). And I want Xdebug for it. I've made all as describe at https://xdebug.org/wizard.php (with custom phpize):
# install phpize7.1
sudo apt-get install php7.1-dev
# cd to unziped xdebug-2.6.1 folder and:
/usr/bin/phpize7.1
# output of ./configure is correct -
# Configuring for:
# PHP Api Version: 20160303
# Zend Module Api No: 20160303
# Zend Extension Api No: 320160303
./configure -with-php-config=/usr/bin/php-config7.1
make
sudo cp modules/xdebug.so /usr/lib/php/20160303
After that, I configured php.ini for 7.1 /etc/php/7.1/fpm/php.ini
zend_extension = /usr/lib/php/20160303/xdebug.so
xdebug.remote_enable=1
xdebug.remote_port=9000
xdebug.profiler_enable=1
xdebug.profiler_output_dir="/home/user/xdebug/profiler"
And restarted nginx + fpm
sudo service nginx restart
sudo service php7.1-fpm restart
But - it still doesn't work. phpinfo()
doesn't show info about Xdebug. PHP version is correct:
PHP Version 7.1.23-3+ubuntu16.04.1+deb.sury.org+1
Am I missing something in instuction?