Ubuntu上的XAMPP:不同的PHP版本

Ubuntu上的XAMPP:不同的PHP版本,php,xampp,xdebug,Php,Xampp,Xdebug,2017年3月16日更新: 我检查了日志,发现以下错误: Xdebug requires Zend Engine API version 320151012. The Zend Engine API version 320160303 which is installed, is newer. Contact Derick Rethans at xdebug.org/docs/faq#api for a later version of Xdebug 我知道我需要使用另一个PHP头来编译xde

2017年3月16日更新:

我检查了日志,发现以下错误:

Xdebug requires Zend Engine API version 320151012. The Zend Engine API version 320160303 which is installed, is newer. Contact Derick Rethans at xdebug.org/docs/faq#api for a later version of Xdebug
我知道我需要使用另一个PHP头来编译xdebug,但是如何使用PHP7编译它呢?此外,我已经在使用最新的xdebug版本,即2.5.1

我将xdebug与XAMPP(PHP7)和PHPStorm一起安装在ElementaryOS上。 当我在终端中输入“php-v”时,我得到以下输出

PHP 7.0.15-0ubuntu0.16.04.4 (cli) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.0.15-0ubuntu0.16.04.4, Copyright (c) 1999-2017, by Zend Technologies
    with Xdebug v2.4.0, Copyright (c) 2002-2016, by Derick Rethans
此外,“php--ini”还写道:

但在浏览器(由XAMPP托管)中运行“phpinfo()”时,输出不包含“xdebug”,php安装似乎是另一个:

Configuration File (php.ini) Path     /opt/lampp/etc
Loaded Configuration File             /opt/lampp/etc/php.ini 
在这两个php.ini文件中,我添加了以下内容,但仍然没有成功:

;[XDebug]
zend_extension="/usr/lib/php/20151012/xdebug.so"
xdebug.remote_enable=On
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=localhost
xdebug.remote_port=9000
我检查了xdebug.so是否存在于该路径。它拥有以下授权:

-rw-r--r-- 1 root root 1225696 Mär 14  2016 /usr/lib/php/20151012/xdebug.so
我不知道下一步该做什么——也许有人能给我一个提示


干杯

将xdebug添加到在xampp中运行的php版本后,是否重新启动了web服务器?是的,我使用了xampp管理器。xampp的php日志中是否存在任何错误?是的,错误日志包含以下内容:xdebug需要Zend Engine API版本320151012。已安装的Zend Engine API版本320160303较新。有关Xdebug的更高版本,请与Derick Rethans联系。我知道我需要使用另一个PHP头来编译xdebug,但是如何使用PHP7来编译?或者是否有新版本的xdebug可供下载?在将xdebug添加到在xampp中运行的PHP版本后,是否重新启动了web服务器?是,我是通过使用XAMPP管理器完成的。XAMPP的php日志中是否有错误?是的,错误日志包含以下内容:Xdebug需要Zend Engine API版本320151012。已安装的Zend Engine API版本320160303较新。有关Xdebug的更高版本,请与Derick Rethans联系。我知道我需要使用另一个PHP头来编译xdebug,但是我如何使用PHP7来编译它呢?或者有新版本的xdebug可供下载吗?
-rw-r--r-- 1 root root 1225696 Mär 14  2016 /usr/lib/php/20151012/xdebug.so