Problem Upgrading from PHP 5.2 to PHP 5.3

2,087 views
asked Apr 21, 2012 in General by TheRock (920 points)
Upgrade  from PHP  5.2 to PHP 5.3

I am running a server with centos 5.7 and Directadmin. When I upgraded to php version 5.3, following custombuild instructions, I got the following error:

Cannot load the ionCube PHP Loader - it was built with configuration 2.2.0, whereas running engine is API220090626,NTS
Cannot load Zend Extension Manager - it was built with configuration 1.2.0, whereas running engine is API220090626,NTS
PHP Warning: PHP Startup: http: Unable to initialize module
Module compiled with module API=20060613
PHP compiled with module API=20090626
These options need to match
in Unknown on line 0

How can I fix thus?

Thanks

2 Answers

0 like 0 dislike
answered Apr 21, 2012 by tareq101 (4,880 points)
change the code as following;

cd /usr/local/directadmin/custombuild
./build update
./build set zend yes
./build set ioncube yes
./build zend d
./build ioncube d
You also might need to edit your php.ini and remove old zend lines.
0 like 0 dislike
answered Apr 21, 2012 by expert (14,380 points)
When upgrading PHP from 5.2 to 5.3 you need to rebuild:

1. all PHP extensions, loaded as modules
2. Apache
3. mod_suphp
...