Knowledgebase
In this section
LEMN Stack Install Node Version Manager (NVM) Setup Guide Product Node Version List How to Use Screen Sessions on Linux Variables Installing ionCube Loader
Docs / Knowledgebase / Installing ionCube Loader

Installing ionCube Loader

How to install and enable the free ionCube Loader so PHP can run ionCube-encoded files.

1 min read
Updated 2d ago
23 views

Installing ionCube Loader (Debian/Ubuntu)

1. Check your PHP version and architecture

bash Copy
php -v
uname -m

Set your version, changing it to match yours:

bash Copy
PHPV=8.3

2. Download and extract

bash Copy
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

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

4. Enable it

bash Copy
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

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

6. Verify

bash Copy
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.

Was this helpful?

Comments

No comments yet. Be the first!
On this page
1. Check your PHP version and architecture 2. Download and extract 3. Copy the loader into the extension directory 4. Enable it 5. Restart services 6. Verify Troubleshooting