Back to blog

How to install ionCube Loader on HestiaCP with PHP version validation

2/14/2025 · 1 min · HestiaCP

Share

When a licensed application requires ionCube and the module is missing, execution usually fails with generic errors. This is the exact operational process I use to install it safely on HestiaCP.

Pre-check

php -v
php -m | grep -i ioncube || echo 'not loaded'

Download and extract

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

Copy correct loader for your PHP version

php -i | grep '^extension_dir'
cp ioncube_loader_lin_8.1.so /usr/lib/php/20210902/

Enable and restart

echo 'zend_extension=/usr/lib/php/20210902/ioncube_loader_lin_8.1.so' > /etc/php/8.1/mods-available/ioncube.ini
phpenmod ioncube
systemctl restart php8.1-fpm
systemctl reload nginx
systemctl reload apache2

Validate

php -v | grep -i ioncube
php -m | grep -i ioncube

Common failures

Rollback

phpdismod ioncube
systemctl restart php8.1-fpm

Final takeaway

ionCube installation is a version-alignment task. Correct loader + FPM validation is what makes it stable.

CC BY-NC

This post is licensed under CC BY-NC.

Comments

Join the discussion below.