Project Phil Documentation
Sign in
On this page

Installing ionCube Loader

1. Check your PHP version and architecture

php -v
uname -m

Set your version, changing it to match yours:

PHPV=8.3

2. Download and extract

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

On an ARM server (aarch64), use ioncube_loaders_lin_aarch64.tar.gz instead.

3. Copy the loader into the extension directory

EXTDIR=$(php -r 'echo ini_get("extension_dir");')
sudo cp /tmp/ioncube/ioncube_loader_lin_${PHPV}.so "$EXTDIR/"

4. Enable it

echo "zend_extension=ioncube_loader_lin_${PHPV}.so" | sudo tee /etc/php/${PHPV}/mods-available/ioncube.ini
sudo ln -sf /etc/php/${PHPV}/mods-available/ioncube.ini /etc/php/${PHPV}/cli/conf.d/00-ioncube.ini
sudo ln -sf /etc/php/${PHPV}/mods-available/ioncube.ini /etc/php/${PHPV}/fpm/conf.d/00-ioncube.ini

If you use Apache with mod_php, also link it into /etc/php/${PHPV}/apache2/conf.d/00-ioncube.ini.

5. Restart services

sudo systemctl restart php${PHPV}-fpm
sudo systemctl restart nginx    # or: sudo systemctl restart apache2

6. Verify

php -v

The output should include a line saying “with the ionCube PHP Loader”.

Troubleshooting

If the site still errors after this, the loader is only enabled for the CLI. Check that the fpm/conf.d link exists, then restart PHP-FPM.

Written by !RAB Last updated 30 Nov 2026 1 min read

Discussion 0

No comments yet. Sign in with Discord to start the conversation.