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.

Php5??

Discussion in 'General Discussion' started by cookiesunshinex, Jan 3, 2009.

  1. cookiesunshinex

    cookiesunshinex Well-Known Member

    Joined:
    Jun 10, 2005
    Messages:
    77
    Likes Received:
    0
    Trophy Points:
    6
    Hello,

    I have a need to upgrade to PHP5 for an script that I'm trying to use. I'm wondering what hassles will I have to deal with to upgrade from 4.4.8 to PHP5.

    On my server, I don't have too many scripts, only a couple of 4images gallery installs, 2 or 3 Drupal 5 installs, 3 Wordpress (cpanel installed) sites, 2 OpenX Adserver insalls, and that's probably about it.

    Secondly, I'm wondering, does my WHM/Cpanel versions look up to date and correct?

    Third, Is the Upgrade of PHP5 independent of WHM/Cpanel and if so, How do I upgrade to PHP5, or will this come as part of a WHM/Cpanel update?

    Lastly, Is there anything else I need to update?


    I have cPanel 11.24.4-R32603 - WHM 11.24.2 - X 3.9
    CENTOS 4.7 i686 on standard

    I have my updates set to:
    cPanel/WHM Updates: Automatic (RELEASE tree)
    cPanel Package Updates: (Automatic)
    Security Package Updates: (Automatic)

    If I look at the cpanel of one of the accounts I have the following:
    Operating system Linux
    Service Status Click to View
    Kernel version 2.6.9-78.0.5.ELsmp
    Machine Type i686
    Apache version 1.3.41 (Unix)
    PERL version 5.8.8
    Path to PERL /usr/bin/perl
    Path to sendmail /usr/sbin/sendmail
    Installed Perl Modules Click to View
    PHP version 4.4.8
    MySQL version 4.1.22-standard
    cPanel Build 11.24.4-RELEASE 32603
    Theme cPanel X v2.6.0
    Documentation Click to View
    cPanel Pro 1.0 (RC1)
     
  2. Oldiesmann

    Oldiesmann Active Member

    Joined:
    Dec 30, 2008
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Cincinnati, Ohio, USA
    Upgrading to PHP 5 is fairly easy, but if you do, I also recommend upgrading to Apache 2.2 (unless you specifically need one of the older versions).

    Login to WHM, click on "Software", then click on "EasyApache (Apache Update)".
    Leave the selection at "Previously Saved Config".
    Scroll down, click on "Start customizing based on profile"
    From there follow the prompts to choose the setup you want and compile everything.

    Your cPanel is up to date, but I would recommend upgrading to the latest MySQL 5.0.x as 4.1.x isn't actively supported anymore and will no longer be supported at all by MySQL after this year. Although 5.0.x will no longer be actively supported after this year, I would not recommend using 5.1 yet - see this article for why.
     
    #2 Oldiesmann, Jan 3, 2009
    Last edited: Jan 3, 2009
  3. cookiesunshinex

    cookiesunshinex Well-Known Member

    Joined:
    Jun 10, 2005
    Messages:
    77
    Likes Received:
    0
    Trophy Points:
    6
    If I upgrade to PHP5 and find too many problems with applications to fix at one time, can I downgrade back to PHP4 without major issue?

    What about MySQL? What is the upgrade process there and what about the possibility of downgrading?

    Thanks for your responses.
     
  4. verdon

    verdon Well-Known Member

    Joined:
    Nov 1, 2003
    Messages:
    836
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Northern Ontario, Canada
    cPanel Access Level:
    Root Administrator
    Yes. Easily. You can also run both at the same time if you wish. There are lots of threads here detailing that, so I won't repeat it all.

    There's no downgrade process. About all you can do is make sure you have a backup of all your db's and go for it. Again, this has been discussed in these forums already. I don't recall too many people reporting trouble with the upgrade though.
     
  5. cookiesunshinex

    cookiesunshinex Well-Known Member

    Joined:
    Jun 10, 2005
    Messages:
    77
    Likes Received:
    0
    Trophy Points:
    6
    I'm happy to report that my upgrade to PHP5 went pretty smooth.

    The only gotchas were when I compiled PHP5, I didn't check the mysql check box. I had saved my old apache config file and was viewing it as I was checking off the options for PHP. I didn't have that in php4.

    After I compiled none of my php that connected to mysql would work.

    After going back and checking that box and saving the configuration, I had a new error.

    I fixed it by editing the PHP configuration = Services Configuration\PHP Configuration.

    I set the memory limit to 12 at first where some of my apps started working, and then had to bump it to 16 to get my Drupal sites to work.
    memory_limit = 16M

    I think I'll wait a day or two before starting on the mysql upgrade. enough stress for one night.
     
  6. pjman

    pjman Well-Known Member

    Joined:
    Mar 22, 2003
    Messages:
    101
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    New York
    Great to hear...

    My php 5 upgrade was good too. I just had to upgrade my version of PDFlib to get it to work right then all scripts that used pdflib had to be re-worked.

    Let me know how the MYSQL upgrade goes. I'm on 4.0xx now and need to do the same.
     
  7. 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 will say a migration from MySQL 4.1 to 5.0 is typically far soother in terms of scripts not breaking than a migration from 4.0 to either 4.1 or 5.0.
     
Loading...

Share This Page