问题描述
我已经通过VirtualBox的Ubuntu服务器12.10本地安装我的PHP编程的目的。
I have a local installation of Ubuntu Server 12.10 via VirtualBox for my PHP programming purposes.
最近,我以这种方式安装Xdebug的:
Recently I've installed the Xdebug in this way:
sudo apt-get install php5-xdebug
然后添加XDebug的路径到我的/etc/php5/apache2/php.ini:
Then added 'xdebug' path to my /etc/php5/apache2/php.ini:
zend_extension=/usr/lib/php5/20100525+lfs/xdebug.so
然后我重新启动Apache的。
而且,它卡住了。我的本地网站不加载。在'PHP -v(以及PHP -m')说:
Then I restarted apache.And, it got stuck. My local sites are not loading. The 'php -v' (as well as 'php -m') says:
PHP致命错误:[ionCube装载机]引导加载器必须显示为第一
在线0条目在php.ini文件中的未知
的事情是,我没有安装Ioncube做。我试图谷歌这种错误mesage,却处处说,它似乎是一个错误的安装Ioncube,或Xdebug的东西,ioncube不兼容。但是,我在所有已安装inocube!
Thing is that I don't have Ioncube installed. I tried to google this error-mesage, but everywhere said that it seems a wrong installed Ioncube, or something with xdebug and ioncube incompatibility. But I dont have inocube installed at all!
什么是错的?我怎样才能让我的Apache再活呢?项目正在燃烧:(
What is wrong? How can I make my apache live again? Projects are burning :(
更新:
我找到了一个理由。如此看来,PHP5-Xdebug的'包先后为ioncube-Xdebug的不兼容内置修复。当我安装了它,我在那里ioncube包括作为Zend扩展文件/etc/php5/conf.d/ioncube.ini。我用的php5-Xdebug的包文件。
所以我删除文件和Apache成为现场。
I've found a reason. It seems that 'php5-xdebug' package has a built-in fix for the ioncube-xdebug incompatibility. When I installed it, I got the file /etc/php5/conf.d/ioncube.ini where ioncube included as zend extension. I got this file with the php5-xdebug package.So I removed that file and apache became live.
推荐答案
Ioncube必须在任何其他扩展之前加载,所以要解决这个问题,做到这一点:
Ioncube must be loaded before any other extension, so to fix this problem do this:
- 转到/etc/php5/conf.d
- MV型01 ioncube.ini,ioncube.ini
- 重启Apache服务的Apache2重启
- 享受ioncube和Xdebug:)
这篇关于Apache的坚持与安装Xdebug的工作后。 Ioncube装载机错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!