Sunday, November 22, 2026
TR
LinuxOpen Source

Installing ionCube Loader on CentOS 8

Installing ionCube Loader on CentOS 8
Contents
  1. Step 1 – Download ionCube Loader
  2. Step 2 – Enable ionCube Loader with PHP
  3. Conclusion

The ionCube Loader is the library used to load ionCube-encoded files on a server. It must be installed on the web server in order to decode any ionCube-encoded file before it is executed.

Step 1 – Download ionCube Loader

First of all, from the ionCube download page download the latest ionCube loaders for your system. Alternatively, for 64-bit systems you can use the following command to download the ionCube loader archive.

wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz

After downloading the file, extract it under the / usr / local / ioncube directory. You can change this location to suit your needs.

tar xzf ioncube_loaders_lin_x86-64.tar.gz sudo mv ioncube /usr/local/

Step 2 – Enable ionCube Loader with PHP

Edit the php.ini file and add the following line at the end of the file. You can use the following command to find the php.ini file.

php -i | grep php.ini Configuration File (php.ini) Path => /etc Loaded Configuration File => /etc/php.ini

Then find the active PHP version on your system:

php -v

Based on the results above, edit the /etc/php.ini file and add the following line at the end of the file.

zend_extension = /usr/local/ioncube/ioncube_loader_lin_7.2.so

Replace the /usr/local/ioncube/ioncube_loader_lin_7.2.so file with the one that matches your PHP version.

Step 3 – Verify ionCube Loader

Let's verify the installation and configuration of the ionCube PHP module. Run the php -m command in the shell.

php -v 
PHP 7.2.11 (cli) (built: Oct 9 2018 15:09:36) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies with the ionCube PHP Loader + ionCube24 v10.3.9, Copyright (c) 2002-2019, by ionCube Ltd.

Conclusion

You have successfully configured the ionCube loader with PHP on CentOS 8.

Kerim Koç

Systems and infrastructure engineer. I write about Linux, open source, high availability and security.