我使用的是 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
最佳答案
我又成功手动激活了,解决方法是创建一个快捷方式xdebug.ini文件,然后粘贴到loading extensions文件夹中。
在您的桌面上创建一个快捷方式 xdebug.ini 文件:
/etc/php5/mods-available/xdebug.ini
这个文件的内容是:
zend_extension=xdebug.so
将桌面创建的快捷方式复制到文件夹:
/etc/php5/apache2/conf.d/
关于php5_invoke xdebug : no action - module was disabled by maintainer for apache2 SAPI,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24356982/