Let me add my own confusion to this thread.
If I run phpMyAdmin from WHM and then click on "Show PHP information", I get the following info:
Code:
PHP Version 4.2.3
System Linux vortex.cpanel.net 2.4.20-grsec #2 Wed May 28 18:24:19 EDT 2003 i686 unknown
Build Date Mar 8 2004 21:37:31
Configure Command './configure' '--enable-static' '--enable-mbstring'
'--enable-mbstr-enc-trans' '--enable-mbregex' '--with-zlib'
'--with-imap=../../bsd/imap' '--enable-ftp'
'--with-gettext' '--with-xml' '--enable-track-vars'
'--enable-sockets' '--with-mysql' '--with-pgsql'
'--with-config-file-path=/usr/local/cpanel/3rdparty/etc'
'--prefix=/usr/local/cpanel/3rdparty'
Server API CGI
Configuration File (php.ini) path /usr/local/cpanel/3rdparty/etc/php.ini
This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.2.0 , Copyright (c) 1998-2002 Zend Technologies
But if I run phpinfo from inside a public_html directory, I get different results:
Code:
PHP Version 4.3.3
System Linux xxx.xxx.org 2.4.20-020stab009.21.777-smp #1 SMP Tue Jun 15 13:43:32 MSD 2004 i686
Build Date Jun 17 2004 07:48:39
Configure Command './configure' '--with-apxs=/usr/local/apache/bin/apxs'
'--with-xml' '--enable-bcmath' '--enable-calendar'
'--enable-ftp' '--enable-magic-quotes' '--with-mysql'
'--enable-discard-path' '--with-pear'
'--enable-sockets' '--enable-track-vars' '--enable-versioning' '--with-zlib'
Server API Apache
Virtual Directory Support disabled
Configuration File (php.ini) Path /usr/local/lib/php.ini
This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies
and at the shell:
Code:
[/]# php -v
PHP 4.3.3 (cgi) (built: Jun 17 2004 07:52:21)
Copyright (c) 1997-2003 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies
Furthermore, I had php 4.3.6 installed before updating apache (which already was 1.3.31) and cpanel (to WHM 9.4.0,cPanel 9.4.0-R21 on RedHat 7.3), but after the last update, Php has reverted back to 4.3.3.
So....why would I get different phpinfo results? The phpinfo from the public_html reflects the correct php version, but the wrong Server API. The cPanel phpinfo had the correct Server API, but the wrong version. And which php.ini file should I concern myself with? I have several:
[/]# locate php.ini
/var/cpanel/version/php.ini-2
/etc/php.ini
/usr/lib/php.ini
/usr/local/lib/php.ini
/usr/local/lib/php.ini.new
/usr/local/cpanel/3rdparty/etc/php.ini
/usr/local/cpanel/3rdparty/lib/php.ini
/home/cpins/installd/buildapache/php-4.3.3/php.ini-dist
/home/cpins/installd/buildapache/php-4.3.3/php.ini-recommended
/home/cpins/installd/buildapache/php-4.3.3/pear/tests/php.ini
/home/cpapachebuild/buildapache/php-4.3.6/pear/tests/php.ini
/home/cpapachebuild/buildapache/php-4.3.6/php.ini-recommended
/home/cpapachebuild/buildapache/php-4.3.6/php.ini-dist
[/]# whereis php.ini
/etc/php.ini
/usr/lib/php.ini
/usr/local/lib/php.ini
Any simple explanations out there? This looks like a genuine clusterflock to me.