美文网首页
Ubuntu下PHP7.0版本如何在php-fpm下安装x-de

Ubuntu下PHP7.0版本如何在php-fpm下安装x-de

作者: 王宝花 | 来源:发表于2016-07-05 21:01 被阅读156次
wget -c "http://xdebug.org/files/xdebug-2.4.0.tgz"
# Extract archive
tar -xf xdebug-2.4.0.tgz
cd xdebug-2.4.0/
# build extension
phpize./configuremake && make install
echo "zend_extension=xdebug.so" > /etc/php/7.0/mods-available/xdebug.ini
ln -sf /etc/php/7.0/mods-available/xdebug.ini /etc/php/7.0/fpm/conf.d/20-xdebug.ini
ln -sf /etc/php/7.0/mods-available/xdebug.ini /etc/php/7.0/cli/conf.d/20-xdebug.ini
service php7.0-fpm restart
# Check it
php -m | grep -i xdebug
# should print:
xdebug
Xdebug

参考地址:https://gist.github.com/hollodotme/418e9b7c6ebc358e7fda

相关文章

网友评论

      本文标题:Ubuntu下PHP7.0版本如何在php-fpm下安装x-de

      本文链接:https://www.haomeiwen.com/subject/erzhjttx.html