php5_invoke xdebug:no action - 维护者为apache2 SAPI禁用了模块

时间:2014-06-23 00:20:23

标签: php apache2 xdebug linuxmint

我正在使用Linux Mint 16,我今天对版本Linux Mint 17执行了更新,正确更新了所有内容,但xdebug未激活,因此我将其卸载并再次安装,我发现当我去的时候要安装xdebug,它会显示此消息警告您无法激活。

这是由于扩展的一些安全问题?如何启用xdebug现在这个新的更新安装?

default@Default-PC ~ $ sudo apt-get install php5-xdebug
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  php5-xdebug
0 upgraded, 1 newly installed, 0 to remove and 18 not upgraded.
Need to get 0 B/253 kB of archives.
After this operation, 982 kB of additional disk space will be used.
Selecting previously unselected package php5-xdebug.
(Reading database ... 272442 files and directories currently installed.)
Preparing to unpack .../php5-xdebug_2.2.3-2build1_amd64.deb ...
Unpacking php5-xdebug (2.2.3-2build1) ...
Setting up php5-xdebug (2.2.3-2build1) ...
php5_invoke xdebug: no action - module was disabled by maintainer for apache2 SAPI

1 个答案:

答案 0 :(得分:5)

我设法再次手动激活,解决方案是创建一个快捷方式xdebug.ini文件并将其粘贴到加载扩展文件夹中。

在桌面上创建快捷xdebug.ini文件:

/etc/php5/mods-available/xdebug.ini

此文件的内容为:

zend_extension=xdebug.so

将桌面上创建的快捷方式复制到文件夹:

/etc/php5/apache2/conf.d/

xdebug.ini in folder mods-available in php5 xdebug.ini shortcut like as 20-xdebug.ini (renamed by me)