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 4.3.10< Auto-Build With WHM

Discussion in 'General Discussion' started by LeeHambley, Sep 3, 2006.

  1. LeeHambley

    LeeHambley Registered

    Joined:
    Sep 3, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Hey All,

    Firstly, thanks to the creators of WHM/cPanel -- it's been incredibly valuable to the course of my business.

    Unfortunatley a client requires PHP <4.3.10 for a certian (CodeCrypter) module that requires that specific version of PHP, and I'm unable to find how to add extra version of PHP to the WHM EaayApache build options system.

    I've uploaded the tarballs, and extracted files to /home/cpapachebuild/buildapache/ as I was lead to believe this may result in the new version being visible to the WHM build manager, however this was not the case.

    If anyone could pose a solition, It would be most gratefully recieved as this problem has already consumed half my afternoon!

    Best Wishes,

    Lee Hambley
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Those versions of php are full of security holes and has been removed from the build procedure. The oldest version you should run is v4.4.4 these days, otherwise you're exposing the server to hackers. If you want that ancient one, you'll have to build it by hand in shell.
     
  3. LeeHambley

    LeeHambley Registered

    Joined:
    Sep 3, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    chirpy,

    Thanks -- i realise the security problems with those versions, I donot have a choice though, I managed to get my colo provider's tech support to build it manaully, attached is the .sh script they provided... incase it's of any use to anyone

    Code:
    #!/bin/bash
    # Shell Script, Installs PHP 4.3.10 On RedHat Enterprise 4 (with cPanel)
    echo "Working In "
    echo pwd
    
    echo "Fetching PHP From www.php.net"
    wget http://uk2.php.net/distributions/php-4.3.10.tar.gz
    echo "OK"
    
    echo "Extracting PHP Tarball"
    tar -zxvf php-4.3.10.tar.gz
    echo "OK"
    
    echo "Switching To Install Directory"
    cd php-4.3.10/
    echo "OK"
    
    echo "Configuring Against EasyApache"
    ./configure --with-apxs=/usr/local/apache/bin/apxs --prefix=/usr/local --with-xml --enable-bcmath --enable-calendar --enable-ftp --enable-magic-quotes --with-mysqli --with-mysql=/usr --enable-discard-path --with-pear --enable-sockets --enable-track-vars --with-zlib
    echo "OK"
    
    echo "Running Make"
    make
    
    echo "Running Make (Install)"
    make install
    
    echo "Restart Apache"
    httpd restart
    
    echo "Clean Up"
    cd ..
    rm -rf php-4.3.10
    rm -f php-4.3.10.tar.gz
    
    echo "Ending"
    
     
Loading...

Share This Page