Apache got stuck after installing Xdebug. Ioncube bootloader error

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

I recently installed Xdebug this way:

sudo apt-get install php5-xdebug

      

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

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

      

Then I restarted apache. And he got stuck. My local sites are not loading. "Php -v" (also "php -m") says:

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

The thing is, I don't have an Ioncube. I tried this error, but everywhere I said that it seems like Ioncube is not installed correctly or something with xdebug and ioncube incompatibility. But I don't have an incocube at all!

What's wrong? How can I make my apache again? Projects are burning: (

UPDATE:

I found the reason. It looks like the "php5-xdebug" package has a built in fix for the ioncube-xdebug incompatibility. When I installed it I got the file / etc / php 5 / conf.d / ioncube.ini where ioncube is included as zend extension. I got this file with php5-xdebug package. So I deleted that file and apache went live.

+3


source to share


2 answers


Ioncube must be loaded before any other extension, so follow these steps to fix this issue:



  • goto / etc / php5 / conf.d
  • type mv ioncube.ini 01-ioncube.ini
  • restart apache service apache2 restart
  • Enjoy using ioncube and xdebug :)
+9


source


Download the iccube loader in the apache add kit and move it to the add block in php.ini so it looks like this:

    zend_extension = /usr/lib/php5/20090626+lfs/ioncube_loader_lin_5.3.so
    zend_extension = /usr/lib/php5/20090626+lfs/xdebug.so

      



Basically you have to download ioncube first and then xdebug.

+2


source







All Articles