How to install IonCube loader on CentOS 6.3

Download and uncompress the latest IonCube version:

wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz # 32 bit
wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz # 64 bit
tar xvfz ioncube_loaders_lin_x86-64.tar.gz

Then we go to the new IonCube source directory:
cd ioncube/

Move ioncube_loader_lin_5.3.so:
mv ioncube_loader_lin_5.3.so /usr/lib/php/modules/

Now edit /etc/php.ini and add the line zend_extension = /usr/lib/php/modules/ioncube_loader_lin_5.3.so
right at the beginning:
vi /etc/php.ini
[PHP]
zend_extension = /usr/lib/php/modules/ioncube_loader_lin_5.3.so

Now restart Apache:
/etc/init.d/httpd restart

You can test by creating a small PHP file
vi /var/www/html/info.php

<?php
phpinfo();
?>
Now we call that file in a browser (e.g. http://***your website*** /info.php)
If its not showing you might have to disable SElinux;
vi /etc/selinux/config

All Done!

Tags:

Add new comment

Filtered HTML

  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.