PDA

View Full Version : Which PHP?


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

rchurch
06-25-2005, 03:22 PM
I think one of them is for use by Plesk, and the other by the your Web scripts.

I am not too sure of that though, check with technical support.

Tony
06-26-2005, 08:14 AM
netrider,

Please submit a support ticket so we can check this out for you.