How to Install ionCube Loader sur un CentOS 7

October 6, 2019 89 views
DigitalOcean Spaces

I want to Install ionCube Loader on a CentOS 7, I check my vesrion php I find PHP 7.4.0 when I list the content of the ‘ioncube’ directory I can’t find the necessary file. what I have to do ? Thank you very much

1 Answer

Hi @khavich,

Here is a small guide to help you out:

SSH to your droplet and initial configuration

First you need to ssh to your droplet like

ssh root@Dropletip

Once you are in, perform some updates like

yum update

Download Ioncube loader

Once your system is up to date it’s time to download the IonCube Loader Itself:


Now unpack the tar archive

tar xfz ioncube_loaders_lin_x86-64.tar.gz

The ionCube Loaders for all PHP versions will be extracted in a new ‘ioncube’ directory.

Determine the PHP version and configuration

php -v

Let’s say you have a PHP version 7.2 installed on your server, so we will need the matching ionCube loader.

List the content of the ‘ioncube’ directory to find the necessary file

 ls ioncube

And find the following files and

We will use the ‘’ file because it matches our PHP version. If you have a different version of PHP installed on your server you will have to use the appropriate file.

To find out the location of the extension directory, run the following command

php -i | grep extension_dir
extension_dir => /usr/lib64/php/modules => /usr/lib64/php/modules

Please note the path might vary to your system!

Copy the ‘’ ionCube loader to the extension directory

cp ioncube/ /usr/lib64/php/modules

Now, open the PHP configuration file and add the following line

nano /path/to/your/php.ini
zend_extension = /usr/lib64/php/modules/

** Web Server restart**

Save the configuration file and restart the Apache/Nginx web server for the changes to take effect.

Verify ionCube Loader installation

You can check if ionCube Loader is successfully enabled using the following command

php -v


Have another answer? Share your knowledge.