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.

Upgrading PHP to 5

Discussion in 'General Discussion' started by EchoHost, Sep 23, 2006.

  1. EchoHost

    EchoHost Well-Known Member

    Joined:
    Jul 27, 2003
    Messages:
    52
    Likes Received:
    0
    Trophy Points:
    6
    I just tried to upgrade to 5.0.16 but it gave me a error saying i can't due it due to a conflict with mysql 4.

    Can I not upgrade to PHP 5 while using MySQL 4?

    BTW which PHP build do you guys recommend?
     
  2. tweakservers

    tweakservers Well-Known Member

    Joined:
    Mar 30, 2006
    Messages:
    379
    Likes Received:
    0
    Trophy Points:
    16
    what's the actual error that you are getting? Can you paste it here?

    I have tried upgrading some of our user's Cpanel box previously to PHP 5.1.6 with mySQL 4.1.21 with no issues.
     
  3. EchoHost

    EchoHost Well-Known Member

    Joined:
    Jul 27, 2003
    Messages:
    52
    Likes Received:
    0
    Trophy Points:
    6
    I got a bit freaked out and just rebuuilt it back to 4.x.x I'll try again tonight (during non busy eriods) and i'll copy paste the error but it mentioned a uncompatability with the mysql i have installed
     
  4. jayh38

    jayh38 Well-Known Member

    Joined:
    Mar 3, 2006
    Messages:
    1,215
    Likes Received:
    0
    Trophy Points:
    36
    Its due to mysqli, It seems there are certain versions of mysql that will allow the upgrade work fine. I usually downgrade to mysql 4.1.13 first and then you can compile any apache config you like without trouble.
     
  5. EchoHost

    EchoHost Well-Known Member

    Joined:
    Jul 27, 2003
    Messages:
    52
    Likes Received:
    0
    Trophy Points:
    6
    Do you upgrade mysql back after the upgrade?
     
  6. jayh38

    jayh38 Well-Known Member

    Joined:
    Mar 3, 2006
    Messages:
    1,215
    Likes Received:
    0
    Trophy Points:
    36
    Yes, I should have mentioned i do run mysqlup --force after recompiling and it shoves it back to the latest without trouble.
     
  7. EchoHost

    EchoHost Well-Known Member

    Joined:
    Jul 27, 2003
    Messages:
    52
    Likes Received:
    0
    Trophy Points:
    6
    what do you use to downgrade?
     
  8. jayh38

    jayh38 Well-Known Member

    Joined:
    Mar 3, 2006
    Messages:
    1,215
    Likes Received:
    0
    Trophy Points:
    36
    I was already on 4.1 so I just downloaded the 4.1.13 rpm and -Uvh. After that I just recompiled with easyapache

    wget http://downloads.mysql.com/archives/...ibc23.i386.rpm
    rpm -Uvh --force MySQL-devel-4.1.13-0.glibc23.i386.rpm

    then after the build, i forced the mysql upgrade after things were
    verified working.
    /scripts/mysqlup --force

    Now, if you are running mysql 5, I would suggest another method of downgrading
    via the control panel.

    Be sure to have full backups of everything before trying this.
     
Loading...

Share This Page