How to install Ioncube Loaders

1 min read

Sometimes you might come across plugins or software that is encrypted with Ioncube, and you might need to install the Ioncube loaders into PHP so that the plugin or software works. 

Warning: Ioncube is third party software and isn’t supported by GridPane. Additionally, if it breaks the server, the server won’t be supported.

That being said, this is pretty safe.

Before you get started, make sure you’ve generated an SSH key and have successfully logged into your server as root. The following guides detail how to do this:

Step 1: Download the Ioncube loaders 

wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz

Step 2: Extract the Ioncube loaders

tar xzf ioncube_loaders_lin_x86-64.tar.gz -C /usr/local

Step 3: Add a line to the end of the PHP config files, adjust 7.x to your version (7.2, 7.3, etc), and restart PHP

echo 'zend_extension = /usr/local/ioncube/ioncube_loader_lin_7.x.so' | tee -a /etc/php/7.x/cli/php.ini && echo 'zend_extension = /usr/local/ioncube/ioncube_loader_lin_7.x.so' | tee -a /etc/php/7.x/fpm/php.ini && gp php 7.x restart

You’re done!