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.

Partial upgrade

Discussion in 'General Discussion' started by yemgi, Dec 22, 2009.

  1. yemgi

    yemgi Member

    Joined:
    May 9, 2008
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    I have update the PHP version on my server to 5.2.12 using easyapache, it worked fine however the PHP version CPanel is running on is still 5.2.9. How can I upgrade it as well, I remember using a script via SSH last time but I can not find any information in the documentation anymore
    Similar issue with MySQL as I upgraded from 5.0 to 5.1, the MySQL client is now 5.1.40 but the MySQL server is still 5.0.87 in phpMyAdmin.

    Am I missing something? the WHM build is 42335
     
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    To upgrade the PHP binary used by cPanel execute the following from the command line:

    /scripts/makecpphp
     
  3. yemgi

    yemgi Member

    Joined:
    May 9, 2008
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Thanks Kenneth unfortunately it does not work, it compiles PH5.2.9 not 5.2.12

    Code:
    Build complete.
    Don't forget to run 'make test'.
            -- End step 'make php for cPanel and cli' --
            -- Begin step 'make install php for cPanel and cli' --
    Installing PHP SAPI module:       cgi
    Installing PHP CGI binary: /var/cpanel/3rdparty//bin/
    Installing build environment:     /var/cpanel/3rdparty//lib/php/build/
    Installing header files:          /var/cpanel/3rdparty//include/php/
    Installing helper programs:       /var/cpanel/3rdparty//bin/
      program: phpize
      program: php-config
    Installing man pages:             /var/cpanel/3rdparty//man/man1/
      page: phpize.1
      page: php-config.1
    Installing PEAR environment:      /var/cpanel/3rdparty//lib/php/
    [PEAR] Console_Getopt - already installed: 1.2.3
    [PEAR] Archive_Tar    - already installed: 1.3.2
    [PEAR] Structures_Graph- already installed: 1.0.2
    [PEAR] PEAR           - already installed: 1.7.2
    Warning! a PEAR user config file already exists from a previous PEAR installation at '/root/.pearrc'. You may probably want to remove it.
    Wrote PEAR system config file at: /var/cpanel/3rdparty//etc/pear.conf
    You may want to add: /var/cpanel/3rdparty//lib/php to your php.ini include_path
            -- End step 'make install php for cPanel and cli' --
    -- End opt 'PHP 5.2.9 support' --
    !! Verbose logfile is at '/usr/local/cpanel/logs/easy/apache/build.1261493071' !!
    
    Done rebuilding cPanel's internal PHP.
    Testing: /var/cpanel/3rdparty/bin/php WORKS!
    Successfully rebuilt cPanel's internal PHP: /var/cpanel/3rdparty/bin/php
    
     
  4. yemgi

    yemgi Member

    Joined:
    May 9, 2008
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Well, the MySQL server had been upgraded, it was just cached in my browser by the look of it ... strange it did not do it for the client version.

    I still can't find how to upgrade the PHP version for CPanel though
     
Loading...

Share This Page