Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache stuck with working after Xdebug was installed. Ioncube loader error

I have a local installation of Ubuntu Server 12.10 via VirtualBox for my PHP programming purposes.

Recently I've installed the Xdebug in this way:

sudo apt-get install php5-xdebug

Then added 'xdebug' path to my /etc/php5/apache2/php.ini:

zend_extension=/usr/lib/php5/20100525+lfs/xdebug.so

Then I restarted apache. And, it got stuck. My local sites are not loading. The 'php -v' (as well as 'php -m') says:

PHP Fatal error: [ionCube Loader] The Loader must appear as the first entry in the php.ini file in Unknown on line 0

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!

What is wrong? How can I make my apache live again? Projects are burning :(

UPDATE:

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.

like image 708
Konstantin Soldatov Avatar asked Dec 08 '22 17:12

Konstantin Soldatov


1 Answers

Ioncube must be loaded before any other extension, so to fix this problem do this:

  1. goto /etc/php5/conf.d
  2. type mv ioncube.ini 01-ioncube.ini
  3. restart apache service apache2 restart
  4. Enjoy with ioncube and xdebug :)
like image 70
corysus Avatar answered Dec 11 '22 07:12

corysus