Skip to content

Install ionCube Loader

The ionCube Loader extension allows PHP to execute files encoded using the ionCube Encoder.

The ionCube Loader extension supports PHP 5.6+.

Install the ionCube Loader extension

First, remove old ionCube Loader archives that are leftover from previous installations.

Terminal window
sudo rm -f /usr/local/ioncube_loaders*.tar.gz

Next, install the ionCube Loader extension.

Terminal window
cd /usr/local
sudo wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
sudo tar xzf ioncube_loaders_lin_x86-64.tar.gz
sudo cp ioncube/ioncube_loader_lin_8.4.so /opt/sp/php8.4/lib/php/extensions/no-debug-non-zts-20240924/
sudo bash -c 'echo "zend_extension=/opt/sp/php8.4/lib/php/extensions/no-debug-non-zts-20240924/ioncube_loader_lin_8.4.so" > /etc/php8.4-sp/conf.d/20ioncube.ini'

Restart PHP-FPM.

Terminal window
sudo service php8.4-fpm-sp restart

Verify the extension is enabled in PHP.

Terminal window
php8.4-sp -i | grep ioncube

If the extension is enabled, you will see output like the following.

Additional .ini files parsed => /etc/php8.4-sp/conf.d/20ioncube.ini,
For Loader updates visit www.ioncube.com/loaders.php
For support visit support.ioncube.com
ioncube.loader.encoded_paths => no value => no value

Uninstall the ionCube Loader extension

Remove the extension’s configuration from PHP.

Terminal window
sudo rm /etc/php8.4-sp/conf.d/20ioncube.ini

Restart PHP-FPM.

Terminal window
sudo service php8.4-fpm-sp restart