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.

WHM not updating PHP to 5.0.3?

Discussion in 'General Discussion' started by ikari, Dec 17, 2004.

  1. ikari

    ikari Registered

    Joined:
    Dec 17, 2004
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    I'm trying to patch PHP to 5.0.3 under the Apache Build/Upgrade module. I've checked the box for 5.0.3 and no other versions, but it compiles and installs 5.0.2. How can I remedy this quickly?
     
  2. dasher

    dasher Member

    Joined:
    Jun 29, 2004
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    I'm seeing the same problem.

    Dasher
     
  3. d_t

    d_t Well-Known Member

    Joined:
    Sep 20, 2003
    Messages:
    243
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Bucharest
    First, it seems that php-5.0.3 is missing from cpanel server:
    http://layer1.cpanel.net/buildapache/1/

    Also, I saw there is a bug in one script from buildapache (is written PHPVER=5.0.2 instead of PHPVER=5.0.3).

    Follow these stepts, hope to work:
    1. you need to connect on ssh to the server as root

    2. extract buildapache files
    Code:
    cd /home/cpapachebuild
    rm -rf buildapache
    /bin/sh ./buildapache.sea --noexec
    cd buildapache/modules/
    3. correct PHPVER=5.0.2 line in modules/php_prep
    Code:
    cd buildapache/modules/
    vi php_prep +71
    3. you need to download php-5.0.3 because it is not on cpanel.net server
    Code:
    cd /home/cpapachebuild/buildapache/
    wget http://www.php.net/get/php-5.0.3.tar.gz/from/this/mirror
    4. run buildapache script (don't forget to check php-5.0.3)
    Code:
    cd /home/cpapachebuild/buildapache/
    /bin/sh ./bs


    I also applyed the patch from http://www.hardened-php.net
    You should add these lines in php_prep, starting line 369, at point 3. :
    Code:
    if [ "$NEWPHP" != "1" ]; then
        echo "Applying Hardened PHP patch";
        patch -p 1 < ../hardened-php-$PHPVER-0.2.5.patch
    fi
    then you need to download and extract pach from http://www.hardened-php.net to buildapache directory:
    Code:
    cd /home/cpapachebuild/buildapache/
    wget http://www.hardened-php.net/hardened-php-5.0.3-0.2.5.patch.gz
    gzip -d hardened-php-5.0.3-0.2.5.patch.gz

    It works for me, hope to work for you too!
     
Loading...

Share This Page