Control Web Panel
WebPanel => PHP Selector => Topic started by: Starburst on December 24, 2024, 08:14:41 AM
-
The new ionCube loaders support PHP 8.3, but when I compile PHP using the CWP selector, after it's finished I get:
Cannot load the ionCube PHP Loader - it was built with configuration API420220829,NTS, whereas running engine is API420230831,NTS
PHP 8.3.15 (cli) (built: Dec 24 2024 08:04:25) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.15, Copyright (c) Zend Technologies
Anyone have any suggestions?
-
Update ionCube manually:
cd /usr/local/src/
rm -rf ioncube*
wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
tar -xvzf ioncube_loaders_lin_x86-64.tar.gz
mv /usr/local/ioncube /usr/local/ioncube_old
chown -R root.root ioncube
mv ioncube /usr/local/
mv /usr/local/php/php.d/ioncube.ini /usr/local/php/php.d/ioncube.ini_old
echo "zend_extension = /usr/local/ioncube/ioncube_loader_lin_8.3.so" > /usr/local/php/php.d/ioncube.ini
-
Thanks.
The old /usr/local/php/php.d/ioncube.ini even though CWP built PHP 8.3 with the ionCube options, it left it as:
zend_extension=/usr/local/ioncube/ioncube_loader_lin_8.2.so
Changed the ending to 8.3.so and it work's now. :)
-
Ya, two things could cause the problem:
1. Wrong path and/or filename to load the ionCube lib
2. Outdated ionCube loader libs
I decided to provide full set of steps to fix the problem if it is caused by any of these.
Anyway, I am glad to hear you solved the problem.
-
Yea, /usr/local/php/php.d/ioncube.ini has 8.2 in it, not 8.3
Once I changed it, it started working.
And yes, it's always good posting the whole thing.