How To Install PHP Ioncube Loader In RHEL/Fedora/CentOS

Written by Santosh Prasad

Ioncube is a utility which is used to encrypt/decrypt PHP application, using this utility you can safe you application data. Ioncube loader is free PHP extension. It protect your PHP application from unauthorized execution. It also decodes encrypted PHP files at run-time. For more detail visit its official site.

In this tutorial I will describe how you can install PHP Ioncube Loader extension in RHEL/CentOS/Fedora.

Follow the below steps to install PHP Ioncube Loaders.

Step #1: Download Ioncube Loaders

First of you will need to download Ioncube loader on your system. You can use its office site to download it from ioncube download page or you can also follow the below command to download.

# tar xzf ioncube_loaders_lin_x86.tar.gz
# mv ioncube /usr/local/

Step #2: Enabling Ioncube Loader

Now you will need to edit php.ini file to add following line at the end of file. Follow the below command to find the php.ini file.

# php -i | grep php.ini

Configuration File (php.ini) Path => /etc
Loaded Configuration File => /etc/php.ini

Above you can see php.ini file located at /etc/php.ini. Now add the following line at the end of file.

zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.4.so

Replace /usr/local/ioncube/ioncube_loader_lin_5.4.so file with your matching PHP version file.

Step #3: Verifying Ioncube Loader

Now you can verify the installation and configuration of Ioncube PHP extension by using below command.

# php -m 
[Zend Modules]
the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured)

OR,  Alternatively you can also use phpinfo.php page on your web server. To do this you will need to create phpinfo.php page on your web document root with following content. In my example my web document root is /var/www/html/.

# cd /var/www/html/
# vim phpinfo.php

Save and close file.

Now access your phpinfo.php page in browser.


I hope this article will be helpful to you. If you have any queries and problem please comment in comment section.


About the author


Santosh Prasad

Hi! I'm Santosh and I'm here to post some cool article for you. If you have any query and suggestion please comment in comment section.

Leave a Comment