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.

How to upgrade php and mysql?

Discussion in 'General Discussion' started by xmutan, Apr 30, 2008.

  1. xmutan

    xmutan Registered

    Joined:
    Feb 3, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    i wonder how to upgrade my php and mysql to version 5? any help?
    my current configuration:
    Code:
    cPanel Version	11.18.4-RELEASE
    cPanel Build	23868
    Apache version	1.3.41 (Unix)
    PHP version	4.4.8
    MySQL version	4.1.22-standard
    Architecture	i686
    Operating system	Linux
    Path to sendmail	/usr/sbin/sendmail
    Path to PERL	/usr/bin/perl
    Kernel version	2.6.18-53.1.6.el5PAE
    cPanel Pro	1.0 (RC1)
    
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    I recommend only doing one at a time. You can upgrade PHP to version 5 by going to WHM -> Software -> Apache Update and following the on-screen instructions and when you get to the step where you can choose which PHP version(s) to run, check the box for PHP. Concurrent PHP setups where you run PHP 4 and 5 simultaneously are supported.

    Ensure everything is working after this process before upgrading MySQL.

    Upgrading to MySQL 5 is a bit more difficult, and a full database backup is strongly encouraged prior to the upgrade as databases cannot be readily downgraded to MySQL 4.1 after 5 has been installed. Simply go to WHM -> Server Configuration -> Tweak Settings and scroll down to the MySQL section. You will see a setting for which MySQL version to use. Select 5.0 and click save.

    Now go back to that same page (WHM -> Server Configuration -> Tweak Settings -> MySQL) and read the instructions on how to update MySQL. It is easy, but please follow the instructions carefully to ensure a full installation.
     
  3. electron33

    electron33 Well-Known Member

    Joined:
    Feb 24, 2004
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    16
    Has anyone got a template (profile) for PHP 5, that can share with me?

    I'm going to upgrade to php 5 (apache 2.2) and need a set up tried and tested modules for apache as well as the most comprehensive set of options for php.

    I'm also going to enable phpsu, but I'm not sure how much it affects usability. Have you had any broken scripts, etc as a result of it?

    Thanks a lot!
     
  4. romulob

    romulob Active Member
    PartnerNOC

    Joined:
    Apr 29, 2008
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    6
    Try with the attached profile.
     
    #4 romulob, May 2, 2008
    Last edited by a moderator: Apr 20, 2011
  5. electron33

    electron33 Well-Known Member

    Joined:
    Feb 24, 2004
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    16
    Thanks a lot!
     
Loading...

Share This Page