The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PHP version missing from General Server Information

Discussion in 'General Discussion' started by globule, Aug 20, 2006.

  1. globule

    globule Member

    Joined:
    Mar 20, 2006
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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.
     
  2. tweakservers

    tweakservers Well-Known Member

    Joined:
    Mar 30, 2006
    Messages:
    379
    Likes Received:
    0
    Trophy Points:
    16
    try running /scripts/upcp via ssh root
     
  3. ckh

    ckh Well-Known Member

    Joined:
    Dec 6, 2003
    Messages:
    356
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    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.
     
  4. globule

    globule Member

    Joined:
    Mar 20, 2006
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    UK
    Thanks guys. I ran /scripts/upcp and that cured the problem.
     
  5. globule

    globule Member

    Joined:
    Mar 20, 2006
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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.
     
Loading...

Share This Page