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.

cpanel problem

Discussion in 'General Discussion' started by HARD, Sep 28, 2005.

  1. HARD

    HARD Member

    Joined:
    Jul 21, 2005
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Hello ,

    i have upgraded my cpanel build to the latest one (10.8.0-RELEASE 27)

    and i have a problem with it

    it shows an empty value for (PHP Version) How to fix it ?

    Thanks
     

    Attached Files:

  2. IberHosting

    IberHosting Well-Known Member

    Joined:
    Jun 1, 2005
    Messages:
    124
    Likes Received:
    0
    Trophy Points:
    16
    Hello,

    wait 24 hours, and check again if you can see the PHP version :)


    Antonio
     
  3. BenThomas

    BenThomas Well-Known Member

    Joined:
    Feb 12, 2004
    Messages:
    598
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Houston, Texas USA
    cPanel Access Level:
    Root Administrator
    It's filled by the value in /usr/local/apache/conf/php.version.

    root@XXX [~]# cat /usr/local/apache/conf/php.version; echo
    4.3.11

    This file is created by easyapache by doing the following:
    Code:
    my($phpv);
    open(SO,"/usr/local/apache/libexec/libphp4.so");
    while(<SO>) {
        if(/X-Powered-By:\s*[HP\/]*([\d+\.]*)/) {
            $phpv = $1;
            last;
        }
    }
    close(SO);
    open(PHPV,">/usr/local/apache/conf/php.version");
    print PHPV $phpv;
    close(PHPV);
    If it's missing on your system you can simply recreate it (or rerun easyapache).
     
Loading...

Share This Page