ionCube Loader is a PHP extension used to run files encoded by the ionCube Encoder. It is required to run encrypted PHP applications like InfixEdu.
php.ini
fileVisit the official ionCube Loader Downloads page and download the appropriate version for your system:
tar -xzf ioncube_loaders_lin_x86-64.tar.gz
cd ioncube
php -i | grep extension_dir
Example Output:
/usr/lib/php/20220829
Find the correct loader file for your PHP version:
PHP Version | Loader File |
---|---|
8.1 | ioncube_loader_lin_8.1.so |
8.2 | ioncube_loader_lin_8.2.so |
8.3 | ioncube_loader_lin_8.3.so |
Copy the file to your PHP extension directory:
sudo cp ioncube_loader_lin_8.2.so /usr/lib/php/20220829/
Replace the loader filename and path based on your PHP version.
Edit your php.ini
file (you can find the path by running php --ini
) and add the following line at the top:
zend_extension=ioncube_loader_lin_8.2.so
Replace with your corresponding loader version.
sudo systemctl restart apache2
sudo systemctl restart php8.2-fpm
sudo systemctl restart nginx
Run:
php -v
Expected output:
PHP 8.2.x (cli) ...
with the ionCube PHP Loader (enabled) ...
Log in to aaPanel.
Go to App Store > PHP > Settings.
Under Install Extensions, search for ioncube.
Click Install next to it.
Restart the PHP service.
Log in to hPanel.
Navigate to Advanced > PHP Configuration.
Choose the correct PHP version.
Scroll down to the extensions list, enable ioncube_loader.
Click Save and wait for the changes to apply.
Most shared hosting providers using cPanel have IonCube Loader pre-installed. If not, you can enable it from Select PHP Version or PHP Extensions:
Log in to your cPanel account.
Scroll down to Software and click Select PHP Version.
On the new page, ensure you're using the required PHP version (e.g., 8.1 or 8.2).
Check the box next to ioncube_loader.
Click Save or Apply to activate it.
If you don't see the "Select PHP Version" option, contact your hosting provider for IonCube support.
zend_extension
line at the top of your php.ini
file..so
file.