php5_invoke xdebug:没有动作 – 维护者为apache2 SAPI禁用了模块

前端之家收集整理的这篇文章主要介绍了php5_invoke xdebug:没有动作 – 维护者为apache2 SAPI禁用了模块前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我使用的是 Linux Mint 16,我今天更新了Linux Mint 17版本,正确更新了所有内容,但是xdebug没有被激活,所以我卸载它并重新安装它,我注意到当我去安装xdebug时,它显示了这个消息警告您无法激活.

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

  1. default@Default-PC ~ $sudo apt-get install PHP5-xdebug
  2. Reading package lists... Done
  3. Building dependency tree
  4. Reading state information... Done
  5. The following NEW packages will be installed:
  6. PHP5-xdebug
  7. 0 upgraded,1 newly installed,0 to remove and 18 not upgraded.
  8. Need to get 0 B/253 kB of archives.
  9. After this operation,982 kB of additional disk space will be used.
  10. Selecting prevIoUsly unselected package PHP5-xdebug.
  11. (Reading database ... 272442 files and directories currently installed.)
  12. Preparing to unpack .../PHP5-xdebug_2.2.3-2build1_amd64.deb ...
  13. Unpacking PHP5-xdebug (2.2.3-2build1) ...
  14. Setting up PHP5-xdebug (2.2.3-2build1) ...
  15. PHP5_invoke xdebug: no action - module was disabled by maintainer for apache2 SAPI
我设法再次手动激活,解决方案是创建一个快捷方式xdebug.ini文件并将其粘贴到加载扩展文件夹中.

在桌面上创建一个快捷方式xdebug.ini文件

  1. /etc/PHP5/mods-available/xdebug.ini

文件内容是:

  1. zend_extension=xdebug.so

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

  1. /etc/PHP5/apache2/conf.d/

猜你在找的PHP相关文章