extension_dir bug when two PHP versions are used

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
15,352
Location
GMT +7.00
Hello,

The bug noticed on different servers, when having two versions of PHP.
CB 2.0 after PHP upgrade puts wrong extension_dir to the first PHP release (extension dir for PHP 5.4 into PHP 5.3, etc).

I have:

Code:
php1_release=5.3
php1_mode=php-fpm
php2_release=5.4
php2_mode=fastcgi

and

Code:
extension_dir=/usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525

in

/usr/local/php53/lib/php.conf.d/directadmin.ini

Thus PHP 5.3. tries to load extensions built for PHP 5.4.

Instead of 5.3 and 5.4 there might be other PHP versions.

Please check it an fix it.
 
That's strange, may you show me the output of:
Code:
/usr/local/[B]php53[/B]/bin/php-config --extension-dir
/usr/local/[B]php54[/B]/bin/php-config --extension-dir

Thank you!
 
Here you are:

Code:
[root@server ~]#
[root@server ~]# /usr/local/*php53*/bin/php-config --extension-dir
/usr/local/php53/lib/php/extensions/no-debug-non-zts-20090626
[root@server ~]#
[root@server ~]# /usr/local/*php54*/bin/php-config --extension-dir
/usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525
[root@server ~]#



and this:


Code:
[root@server custombuild]# ./build used_configs | grep -i php
PHP (default) php.ini file: /usr/local/php53/lib/php.ini
PHP (additional) php.ini file:: /usr/local/php54/lib/php.ini
PHP (default) configuration file: /usr/local/directadmin/custombuild/configure/fpm/configure.php53
PHP (additional) configuration file: /usr/local/directadmin/custombuild/configure/fastcgi/configure.php54
 
Thank you for the report! :) It's now fixed and will be uploaded to files1 download server soon. Mirrors might take up to 24 hours.
 
Back
Top