netrider
06-21-2005, 01:30 AM
Our VPS system has 2 installations of PHP :confused:
How can I determine which is being used by Apache? There seems a difference between the two binaries (cgi vs cli) - is that the case? and why do we have two?
root@host [/tmp]# /usr/bin/php -v
PHP 4.3.11 (cgi) (built: May 20 2005 20:18:46)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
with Zend Extension Manager v1.0.6, Copyright (c) 2003-2004, by Zend Technologies
with Zend Optimizer v2.5.7, Copyright (c) 1998-2004, by Zend Technologies
root@host [/tmp]# /usr/local/bin/php -v
PHP 4.3.11 (cli) (built: May 20 2005 20:15:41)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
with Zend Extension Manager v1.0.6, Copyright (c) 2003-2004, by Zend Technologies
with Zend Optimizer v2.5.7, Copyright (c) 1998-2004, by Zend Technologies
How can I determine which is being used by Apache? There seems a difference between the two binaries (cgi vs cli) - is that the case? and why do we have two?
root@host [/tmp]# /usr/bin/php -v
PHP 4.3.11 (cgi) (built: May 20 2005 20:18:46)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
with Zend Extension Manager v1.0.6, Copyright (c) 2003-2004, by Zend Technologies
with Zend Optimizer v2.5.7, Copyright (c) 1998-2004, by Zend Technologies
root@host [/tmp]# /usr/local/bin/php -v
PHP 4.3.11 (cli) (built: May 20 2005 20:15:41)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
with Zend Extension Manager v1.0.6, Copyright (c) 2003-2004, by Zend Technologies
with Zend Optimizer v2.5.7, Copyright (c) 1998-2004, by Zend Technologies