How to Install IonCube Loader on CentOS/RHEL 6/7

Share It!

IonCube is a PHP module extension that loads execution of encoded files and speeds up webpages that are being displayed. Shortly, you may see a script encoded with IonCube and as per its developer says, you must have IonCube Loader installed on your server.

Step 1: First we need to check that Zend Optimizer with Zend Guard Loader is install or not. If it is not install then first we have to installed it. Use following step to check Zend Optimizer with Zend Guard Loader:

Zend_Loader_1

How to configure ZendGuard in CentOS/RHEL

Step 2: Go to your site’s public folder (root directory of your site) or DocumentRoot of your server.

# cd /path/to/site

example:

# cd /usr/local/apache2/techoism
 or 
# cd /var/www/html

Step 3: Download IonCube Loader according to your system requirement.

For CentOS 32-bit use:
# wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz

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

If above links are not working,then please check the latest version of IonCube at http://www.ioncube.com/loaders.php.

Step 4: After downloading IonCube, now extract the file using following command.

For CentOS 32-bit use:
# tar xvfz ioncube_loaders_lin_x86.tar.gz

For CentOS 64-bit use:
# tar xvfz ioncube_loaders_lin_x86-64.tar.gz

Step 5: Now use web browser browser (like Firefox, Chrome, etc) to access IonCube file loader-wizard.php via your server’s ip or domain name:

# http://192.168.X.X/ioncube/loader-wizard.php
or
# http://www.techoism.com/ioncube/loader-wizard.php

ionCude_1
ionCude_2

Step 6: Now copy the loader .so file into modules directory:

32-bit server:
/usr/lib/php/modules

64-bit server:
/usr/lib64/php/modules

example:
# cp /usr/local/apache2/techoism/ioncube/ioncube_loader_lin_5.4.so /usr/lib64/php/modules
or
# cp /var/www/html/ioncube/ioncube_loader_lin_5.4.so /usr/lib64/php/modules
Step 7: – Now download the 20ioncube.ini file from the wizard. Once 20ioncube.ini file has been downloaded, upload that file to /etc/php.d directory. But simply I will prefer to open that file using Notepad then copy it to server by creating an file.
# vim /etc/php.d/20ioncube.ini

Now open the downloaded file using Notepad, then copy the content and paste it to new created file.

For 32-bit:
zend_extension = /usr/lib/php/modules/ioncube_loader_lin_5.4.so

For 64-bit:
zend_extension = /usr/lib64/php/modules/ioncube_loader_lin_5.4.so

Step 8: Restart Apache service:

# service httpd restart

Step 9: Go back to your browser where you open loader-wizard.php page. Scroll down to the bottom and click the link in “When the server software has restarted, click here to test the Loader.” line to re-test the configuration.

If you did everything correctly, you’ll see this message:

Loader Installed Successfully

ionCude_3

The ionCube Loader version 4.4.1 for PHP 5.3 is installed and encoded files should run successfully.

ioncube

Leave a Reply

Your email address will not be published.