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 5.x.x: Can WHM Compile with mysql and mysqli APIs Automatically?

Discussion in 'General Discussion' started by jfxberns, Dec 26, 2006.

  1. jfxberns

    jfxberns Member

    Joined:
    Dec 29, 2003
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Can WHM compile PHP 5.x.x (an version, the newer the better) with both the mysql and mysqli APIs from teh Apache Install Control Panel automatically--or does that still require a manual compile of PHP?

    I have been compiling PHP 5 with oth manyally on my cPanel/WHM enabled server and I am tiring of the hassle of doing it manually each time and not knowing where or if I will run into errors.

    Sigh.
     
  2. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    You could use cron jobs and scripts to upgrade PHP automatically but I don't recommend it ...

    If a new version is released and changes something that isn't compatible with your current
    options, the upgrade could fail and leave your system in a non-usable state until you
    come around and fix it.

    You are lucky to see a new PHP release once every couple of months usually so it really
    should not be much of any issue to just update manually as new releases become available.

    Set yourself up a compile script ....

    wget (whatever url to php source)
    tar zxvf (archive)
    cd (php source)
    ./configure (whatever options you want)
    make
    make test
    make install

    You can run your compile script you create in a single command when updates are
    available and just sit back and watch to make sure nothing goes wrong.

    That's about as easy as it gets! ;)
     
Loading...

Share This Page