PHP version missing from General Server Information

globule

Member
Mar 20, 2006
12
0
151
UK
Last night I upgraded to PHP 5.1.5 with PHP suexec from PHP 4 (using /scripts/easyapache). All went well and my sites are running nicely.

However, I have noticed today that the cPanel interface that customers login to, is missing the PHP version in the 'General Server Information' section (it's just blank). This was definitely showing the version info correctly before I upgraded PHP last night.

The PHP version info is displayed correctly within PHP scripts using phpinfo() and it's ok from 'php -v' in a shell:-

PHP 5.1.5 (cli) (built: Aug 20 2006 02:51:36)

I'm using WHM 10.8.0, cPanel 10.8.2-R119, CentOS 4.3 i686.
 

tweakservers

Well-Known Member
Mar 30, 2006
379
0
166
try running /scripts/upcp via ssh root
 

ckh

Well-Known Member
Dec 6, 2003
358
1
168
Phoenix, AZ
cPanel Access Level
DataCenter Provider
I had that problem when I updated 4.4.2 to 4.4.3 although everything was working fine and dandy.

I simply edited /usr/local/apache/conf/php.version

and entered the php version numbers there as nothing was in there.

Mine currently has 4.4.4 in there. Looks like you should have 5.1.5 there. Just that, on the first line. After saving the changes it should show up in cpanel.
 

globule

Member
Mar 20, 2006
12
0
151
UK
Well, it just happened again. I had been editing the feature lists from within WHM and when refreshing cPanel customer logins I noticed the PHP version had disappeared once again.

I remember now that I also made changes to the feature lists yesterday so it seems likely that it's the editing of the feature lists that is causing the PHP version to disappear. I'll test this again later to make sure.

Anyway, rather than run a whole cPanel update again to cure it, I gave ckh's method a go and it worked fine too. My /usr/local/apache/conf/php.version file was empty, so I just entered 5.1.5 and it was back in my cPanel server info.