在哪里可以找到phpize for php7.1.1?

我目前安装了php7.0版本,并且xdebug无法正常工作,想知道php7.1.1是否有phpize?

xdebug安装php7.1 。 按照以下步骤安装php7.1

  1. 安装php7.1 dev, 如果转到第2步

     sudo apt install php-all-dev 
  2. 安装xdebug模块:

     sudo apt install php-xdebug 
  3. Retstart apache

     sudo systemctl restart apache2 
  4. 测试它:

    一个。 转到您添加到OP的页面并添加phpinfo()命令的内容以获取相关的 xdebug-2.5.1.tgz文件

    湾 按照该页面上的指示执行以下步骤:

    1. tar -xvzf xdebug-2.5.1.tgz

    2. cd xdebug-2.5.1/

    3. 现在运行phpize7.1 ,而不是phpize给出的phpize

      • 您应该看到此输出或类似的东西

         Configuring for: ... Zend Module Api No: 20151012 Zend Extension Api No: 320151012 
  5. 将以下内容添加到/etc/php/7.1/mods-available/xdebug.ini下的任何条目下:

     xdebug.show_error_trace = 1 
  6. 重启apache: sudo systemctl restart apache2

  7. 检查网页上的phpinfo()输出,你现在应该看到xdebug部分。