How to Enable ionCube Loader on CloudPanel?

Nemesis

Active member
Joined
Mar 22, 2025
Messages
35
Points
61
Age
26
I'm trying to run ionCube-encoded PHP files on my CloudPanel server. How can I enable the ionCube Loader for my PHP version?
 
Solution
CloudPanel ships with the ionCube Loader extension included but disabled by default for performance reasons. You can easily enable it for your specific PHP version by following these steps:

⚠️ Important Note: Currently, ionCube Loader is not available for PHP 8.0. Check your PHP version compatibility before proceeding.



🔸 Enable ionCube Loader Extension:


Assuming you're using PHP 8.3 (replace with your actual PHP version if different):
  1. Open the PHP configuration files (php.ini) for CLI and FPM:
Code:
nano /etc/php/8.3/cli/php.ini
nano /etc/php/8.3/fpm/php.ini
  1. Locate the following line at the end of each file:

Code:
;zend_extension=ioncube_loader_lin_8.3.so
...
CloudPanel ships with the ionCube Loader extension included but disabled by default for performance reasons. You can easily enable it for your specific PHP version by following these steps:

⚠️ Important Note: Currently, ionCube Loader is not available for PHP 8.0. Check your PHP version compatibility before proceeding.



🔸 Enable ionCube Loader Extension:


Assuming you're using PHP 8.3 (replace with your actual PHP version if different):
  1. Open the PHP configuration files (php.ini) for CLI and FPM:
Code:
nano /etc/php/8.3/cli/php.ini
nano /etc/php/8.3/fpm/php.ini
  1. Locate the following line at the end of each file:

Code:
;zend_extension=ioncube_loader_lin_8.3.so
  1. Enable ionCube Loader by removing the semicolon (;):
Code:
zend_extension=ioncube_loader_lin_8.3.so
  1. Restart PHP-FPM service to apply changes:
Code:
systemctl restart php8.3-fpm



After performing these steps, the ionCube Loader will be enabled, allowing your server to execute ionCube-encoded PHP files.

Additional Reminder:
Ensure you're enabling the correct ionCube Loader version corresponding to your PHP version.
 
Solution
Back
Top