xdebug 支持php版本,ubuntu 升级 php版本 并支持xDebug

不是什么教程,只是记录一下。

升级PHP

apt search php7 最新是7.0版本的,所以还是选择编译安装

// 查看当前版本

molsen@monster: php -i |grep configure

// 下载需要的版本

molsen@monster: wget http://hk1.php.net/get/php-7.1.11.tar.gz/from/this/mirror

// 命名

molsen@monster: mv mirror php-7.1.11.tar.gz

molsen@monster: tar zxvf php-7.1.11.tar.gz

molsen@monster: cd php-7.1.11/

molsen@monster: ./configure --prefix=/usr/local/php7 --enable-fpm --enable-ftp --enable-mbstring --enable-soap --enable-sockets --enable-zip --with-fpm-user=www --with-fpm-group=www --with-litespeed --with-libxml-dir --with-openssl --with-pcre-regex --with-zlib --with-bz2 --with-curl --with-pcre-dir --with-openssl-dir --with-gd --with-webp-dir --with-jpeg-dir --with-png-dir --with-zlib-dir --with-xpm-dir --with-freetype-dir --with-mcrypt --with-mysqli --with-mysql-sock --with-pdo-mysql --with-xmlrpc --with-xsl --with-libzip

molsen@monster: make

molsen@monster: make install

molsen@monster: php -v

xDebug安装

molsen@monster: tar zxvf xdebug-2.5.5.tgz

molsen@monster: cd xdebug-2.5.5/

molsen@monster: /usr/local/php7/bin/phpize

molsen@monster: ./configure --enable-xdebug --with-php-config=/usr/local/php7/bin/php-config

molsen@monster: make

molsen@monster: make install

phpize 这一步,如果提示:

Cannot find autoconf. Please check your autoconf installation and the

$PHP_AUTOCONF environment variable. Then, rerun this script.

你就需要 apt install autoconf 来安装自动配置

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值