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:


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


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

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

For CentOS 32-bit use:
# wget

For CentOS 64-bit:
# wget

If above links are not working,then please check the latest version of IonCube at

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


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

32-bit server:

64-bit server:

# cp /usr/local/apache2/techoism/ioncube/ /usr/lib64/php/modules
# cp /var/www/html/ioncube/ /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/

For 64-bit:
zend_extension = /usr/lib64/php/modules/

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


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


Leave a Reply

Your email address will not be published.