doujiao1984 2018-11-02 13:05
浏览 45

Xdebug安装了多个PHP版本

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?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥30 深度学习,前后端连接
    • ¥15 孟德尔随机化结果不一致
    • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
    • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
    • ¥15 谁有desed数据集呀
    • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
    • ¥15 关于#hadoop#的问题
    • ¥15 (标签-Python|关键词-socket)
    • ¥15 keil里为什么main.c定义的函数在it.c调用不了
    • ¥50 切换TabTip键盘的输入法