How to Solve “Cannot Load the ionCube PHP Loader” Error After Upgrade php from Version 5.2 to 5.3
To check if ioncube PHP Loader loading fine, you may use the following command:
php -m
This command will show you the loaded modules of php, check if “ionCube Loader” and “Zend Modules – the ionCube PHP Loader” loaded in the list. If not, please refer to Here for the guide on how to build Zend optimizer and ionCube loader.
And if you are sure that you have had PHP, ionCube loader and Zend built, and still have the same error, you should use the command below to check on the php.
php -v
And you will able to see the PHP version message.
If the php is having issue with the php version, you will see message like below:
Cannot load the ionCube PHP Loader - it was built with configuration 2.2.0, whereas running engine is API220090626,NTS
The reason is because you’re still using the ionCube 5.2 loaders (or older) and need to download the latest loaders and use the loaders for PHP 5.3. To do this, refer to guide below.
wget downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
tar -zxvf ioncube_loaders_lin_x86-64.tar.gz
cd ioncube
cp ioncube_loader_lin_5.3.so /usr/local/ioncube/
And then edit the file /usr/local/lib/php.ini, looking for the line below and make sure it refer to ionCube loader version 5.3
Make sure only ONE ioncube_loader.so loaded in ONE TIME, or else it will give you error like below:
php -v
PHP Deprecated: Comments starting with '#' are deprecated in /usr/local/lib/php.ini on line 1288 in Unknown on line 0
PHP Warning: Module 'ionCube Loader' already loaded in Unknown on line 0
The ionCube PHP Loader is disabled because of startup problems.
After the path setup, remember to restart httpd service.
/etc/init.d/httpd restart
And if everything load fine, you will see message like below:
php -v
PHP 5.3.16 (cli) (built: Sep 13 2012 22:31:08)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
with the ionCube PHP Loader v4.2.2, Copyright (c) 2002-2012, by ionCube Ltd.
php -m
This command will show you the loaded modules of php, check if “ionCube Loader” and “Zend Modules – the ionCube PHP Loader” loaded in the list. If not, please refer to Here for the guide on how to build Zend optimizer and ionCube loader.
And if you are sure that you have had PHP, ionCube loader and Zend built, and still have the same error, you should use the command below to check on the php.
php -v
And you will able to see the PHP version message.
If the php is having issue with the php version, you will see message like below:
Cannot load the ionCube PHP Loader - it was built with configuration 2.2.0, whereas running engine is API220090626,NTS
The reason is because you’re still using the ionCube 5.2 loaders (or older) and need to download the latest loaders and use the loaders for PHP 5.3. To do this, refer to guide below.
wget downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
tar -zxvf ioncube_loaders_lin_x86-64.tar.gz
cd ioncube
cp ioncube_loader_lin_5.3.so /usr/local/ioncube/
And then edit the file /usr/local/lib/php.ini, looking for the line below and make sure it refer to ionCube loader version 5.3
Make sure only ONE ioncube_loader.so loaded in ONE TIME, or else it will give you error like below:
php -v
PHP Deprecated: Comments starting with '#' are deprecated in /usr/local/lib/php.ini on line 1288 in Unknown on line 0
PHP Warning: Module 'ionCube Loader' already loaded in Unknown on line 0
The ionCube PHP Loader is disabled because of startup problems.
After the path setup, remember to restart httpd service.
/etc/init.d/httpd restart
And if everything load fine, you will see message like below:
php -v
PHP 5.3.16 (cli) (built: Sep 13 2012 22:31:08)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
with the ionCube PHP Loader v4.2.2, Copyright (c) 2002-2012, by ionCube Ltd.
Updated on: 13/11/2018
Thank you!