Skip to main content

Ioncube loaders

Firstly we need to install unzip:

sudo apt-get install unzip -y

We'll need that for Ticaga later too.

Let's grab the Ioncube files:

cd /tmp;
wget -N https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.zip
unzip ioncube_loaders_lin_x86-64.zip

Let's move it to PHP 8.3 loaders to the correct location:

We need to find out where the loader files are stored on Ubuntu, so let's run:

php -i | grep extension_dir

ours outputs: /usr/lib/php/20230831
Now let's move the files:

sudo cp /tmp/ioncube/ioncube_loader_lin_8.3.so /usr/lib/php/20230831

or if you're running PHP 8.4:

sudo cp /tmp/ioncube/ioncube_loader_lin_8.4.so /usr/lib/php/20230831

Now we need to load them in the PHP.ini:

sudo nano /etc/php/8.3/apache2/php.ini

or PHP 8.4:

sudo nano /etc/php/8.4/apache2/php.ini

You'll also need to edit the CLI.ini as-well eg:

sudo nano /etc/php/8.3/cli/php.ini

 Else you won't see the ioncube loaders working.

Paste this under the [PHP] section:

zend_extension = /usr/lib/php/20230831/ioncube_loader_lin_8.3.so