youds
Verified User
Hi
I'm confused as to why there are so many PHP binaries on my system.
The server was a fresh install and there appears to be a number of versions of PHP floating about.
I'm sure that custombuild doesn't create them, but which are the ones that I need to keep? I've done "yum erase php-*" so there are no operating system php's as far as I'm aware.
See below:
I've just upgraded PHP to 5.3.2 by setting a custom options.conf setting, however only one has been updated, see:
So one has upgraded to 5.3.2 and the other is at 5.2.12. So custombuild must be using /usr/local/bin/php and not /usr/local/php5, correct? Does that mean I can get rid of /usr/local/php5 with an rm -rf ?
Reason why I'm concerned is that "phpize" says it's for PHP 5.1.12, which would mean I wouldn't be able to successfully recompile the above extensions. Do I need to upgrade phpize as well?
Kind regards
I'm confused as to why there are so many PHP binaries on my system.
The server was a fresh install and there appears to be a number of versions of PHP floating about.
I'm sure that custombuild doesn't create them, but which are the ones that I need to keep? I've done "yum erase php-*" so there are no operating system php's as far as I'm aware.
See below:
Code:
[root@tower pub]# locate /php | grep bin
/usr/local/bin/php
/usr/local/bin/php-config
/usr/local/bin/phpize
/usr/local/php5/bin
/usr/local/php5/bin/pear
/usr/local/php5/bin/peardev
/usr/local/php5/bin/pecl
/usr/local/php5/bin/php
/usr/local/php5/bin/php-cgi
/usr/local/php5/bin/php-config
/usr/local/php5/bin/phpize
/usr/local/php5/lib/php/bin
Code:
[root@tower pub]# /usr/local/bin/php -v
Cannot load the ionCube PHP Loader - it was built with configuration 2.2.0, whereas running engine is API220090626,NTS
PHP Warning: PHP Startup: imagick: 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
Warning: PHP Startup: imagick: 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
PHP 5.3.2 (cli) (built: Mar 12 2010 12:22:13)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
Code:
[root@tower pub]# /usr/local/php5/bin/php -v
PHP 5.2.12 (cli) (built: Jan 29 2010 16:26:32)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
So one has upgraded to 5.3.2 and the other is at 5.2.12. So custombuild must be using /usr/local/bin/php and not /usr/local/php5, correct? Does that mean I can get rid of /usr/local/php5 with an rm -rf ?
Reason why I'm concerned is that "phpize" says it's for PHP 5.1.12, which would mean I wouldn't be able to successfully recompile the above extensions. Do I need to upgrade phpize as well?
Kind regards