Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    Member
    Join Date
    Jul 2005
    Posts
    92

    Default PHP5 good points, bad points?

    All of my servers currently run PHP4, I am looking to run PHP5.

    I am told that once I install PHP5 I cannot downgrade to PHP4 if I require, is this correct?

    I want to know the pros and cons of upgrading to PHP5, in terms of cPanel and users scripts to ensure everything will work correctly.

    Am I likely to have any problems?

  2. #2
    Member
    Join Date
    Mar 2006
    Posts
    1,215

    Default

    No that is not correct. You can easily revert to any php version you like. If you wait on easyapache to trickle down, I believe that will offer php4 and 5 simultaneously.

    As far as user scripts compatibility, no one can determine that. PHP5 has been around long enough that any modern script will run under it with no trouble. If you know you have clients with much older scripts, it may be a concern.

    Are you likely to have problems? that depends how many clients have broken scripts if any.

  3. #3
    Member
    Join Date
    Jul 2005
    Posts
    92

    Default

    Thanks for your reply.

    I am under the impression that PHP5 works best with apache2, yet as far as I am aware cPanel only works with apache1.

    Is this correct? (Please expand if you can)
    Last edited by hm2k; 05-11-2007 at 06:49 AM.

  4. #4
    Member
    Join Date
    Jul 2005
    Posts
    92

    Default

    Quote Originally Posted by jayh38 View Post
    No that is not correct. You can easily revert to any php version you like.
    Can I ask if this is from experience?

    Can I also ask if anyone else has experienced this without a problem?

    Thanks.

  5. #5
    Registered User
    Join Date
    Feb 2007
    Posts
    3

    Default you can go back

    Yes, you can go back to any version of PHP without issue in CP. You can simply go in to your apache build and downgrade the same way you upgraded. As for PHP5 compatibility you need to check with the maintainers of any scripts you run to be sure they are 5 comp. Most scripts, I dare to say all good scripts, are. But, you should certainly check to make sure before you upgrade - you don't want to break anything you might currently be running. Simply check with the maintainers website of any software in question and check their requirements checklist.

    If it is things such as CMS packages you are concerned about, all the modern CMS's (Drupal, Joomla, Wordpress etc.) are fully compatible, and often greatly enhanced by running on a php5 platform. I honestly cannot think of a single program or script I run or have run in recent memory that is not PHP5 comp.

    Unless you are hosting other clients and are unaware of what scripts and programs they may be running, there is no downside to simply upgrading - and if you decide to go back, you could do so within a few clicks and a matter of moments with no harm done.

    However, if you are hosting other clients and websites and you do not have complete knowledge of what they are running, you should at the very least contact everyone and notify them of the impending upgrade.

  6. #6
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by hm2k View Post
    Thanks for your reply.

    I am under the impression that PHP5 works best with apache2, yet as far as I am aware cPanel only works with apache1.

    Is this correct? (Please expand if you can)
    cPanel 11 currently supports Apache 1.3, 2.0 and 2.2. However, I would recommend if you're not fond of doing Apache things manually, wait until Stage 2 of the cPanel 11 release for the new EasyApache which will make things much easier with regards to Apache 2/2.2.

  7. #7
    Member
    Join Date
    Oct 2006
    Location
    Melbourne, Australia
    Posts
    84
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    PHP 5 is quite a bit better than PHP 4 (new features, new extensions, etc.), and most scripts (if not all scripts) these days are fully compatible with it (actually, I tried a SMF 1.0 Beta release from 2003 and it worked without problems :P)

    Quote Originally Posted by hm2k View Post
    Thanks for your reply.

    I am under the impression that PHP5 works best with apache2, yet as far as I am aware cPanel only works with apache1.

    Is this correct? (Please expand if you can)
    As far as I know, PHP 5 works fine with either Apache 1.3 or 2.x
    Last edited by Daniel15; 05-11-2007 at 11:35 AM.

  8. #8
    Member
    Join Date
    Nov 2006
    Posts
    101

    Default

    I currently run PHP 5 with Apache 1.3.37 and so far have had no problems at all. The only people who even write those articles about PHP 5 being a bad thing to upgrade are either people who are afraid to make the change or people who have no idea how to code a PHP script.

    I've yet to run across a script that wasn't PHP5 compatable.

    As for downgrading to PHP4, you definately don't even need to wait for EasyApache, re-configuring and building PHP is very, very easy.

    - John

  9. #9
    Member
    Join Date
    Oct 2006
    Location
    Melbourne, Australia
    Posts
    84
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Nhojohl View Post
    As for downgrading to PHP4, you definately don't even need to wait for EasyApache, re-configuring and building PHP is very, very easy.

    - John
    EasyApache is already here, and supports both PHP 4 and PHP 5 (but only supports Apache 1.3.37). The new EasyApache adds support for Apache 2.0 and 2.2, among other new features.
    To use EasyApache, there's two ways to use it:
    1) Log in via SSH, su to root, and then execute
    Code:
    /scripts/easyapache
    . You'll get a menu like this:
    1) Beginner without/phpsuexec + webroot protection support (*** DEFAULT ***)
    2) Beginner with/phpsuexec support + web root protection
    3) Beginner with/php mcrypt support (if php will not compile, you must choose option 1)
    4) Beginner with/php gd+freetype support (if php will not compile, you must choose option 1)
    5) Beginner with/php gd+freetype+mcrypt support (if php will not compile, you must choose option 1)
    6) Advanced (Experts Only, At Your Own Risk)
    7) Advanced [Load Previous Config] (Experts Only, At Your Own Risk)
    8) Failsafe mode (Resets apache config to default, USE ONLY AS A LAST RESORT)
    Choose option 7.

    2) Log in to WHM as root, and click on the "Apache Update" option (under the "Software" heading)

    No matter which option you choose, the steps are very similar. Go down to "PHP Module", select it, and choose the version you'd like to use. Scroll down a bit, and enable any PHP modules you'd like to use (I'd suggest at least curl, MySQL, pspell, GD, Freetype and zlib). These are "modules" used by PHP scripts, and the ones I listed are the most common.

    If you're using SSH, "exiting" the menu will start the build. If you're in WHM, click on the "Start Build" button. Depending on the speed of your server, this should only take 5 minutes or so (and you will not experience any downtime, as Apache is only restarted once everything is done).

    definately
    /me points to http://d-e-f-i-n-i-t-e-l-y.com/

  10. #10
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    Sounds like the user writing this thread has PHP confused with MySQL ...

    MySQL v5 is NOT easily backwards downgradable to MySQL v4

    MySQL v5 also still has a few compatibility issues with programs made for MySQL v4

    Reading this thread, I get the very strong impression that hm2k heard things
    about MySQL and got it confused with PHP which is a totally different subject!

    PHP v5 and v4 are independent of one another and you can run either the old
    version 4, the newer PHP verson 5 series, or even both at the same time and,
    unlike MySQL, there is absolutely no technical problem with downgrading back
    to PHP v4 from PHP v5 if you really wanted to do that.

    PHP v5 is fully backwards compatible to PHP v4 and all existing user scripts you
    currently have running under PHP v4 will work just fine under PHP v5.

Similar Threads & Tags
Similar threads

  1. How to configure where additional IP points?
    By piotrpawlowski in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-28-2011, 09:37 PM
  2. Help www points to 0.0.0.1
    By Snowman30 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-26-2005, 11:49 PM
  3. IP points to hosting account?
    By AA2004 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-02-2004, 09:58 AM
  4. Subdomain that points to IP
    By iidavidii in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 06-28-2003, 11:08 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube