Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member vlee's Avatar
    Join Date
    Oct 2005
    Location
    Las Vegas, Nevada, United States
    Posts
    134
    cPanel/Enkompass Access Level

    Root Administrator

    Question Do I really need to install PHP4?

    I am doing php compilation now it is defaulted to php5 do I really need to install php4 too.

    or

    Can PHP5 work with most applications out there?


    Thanks
    Last edited by vlee; 08-13-2009 at 01:51 PM.
    Thank you,

    Veldon Lee - President
    Point Action Services, Inc. Web Hosting and other services.

  2. #2
    Member
    Join Date
    May 2008
    Posts
    1,203

    Default

    I suggest you to install both php4 as well as php5 as some applications cannot run on php5. Hence, need to switch over to php4.

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

    Root Administrator

    Default

    PHP 5 will work with the vast majority of applications out there, including most that were coded for PHP 4.

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

    Lightbulb

    Quote Originally Posted by vlee View Post
    I am doing php compilation now it is defaulted to php5 do I really need to install php4 too.

    or

    Can PHP5 work with most applications out there?


    Thanks
    No, you DO NOT need to install PHP 4!

    (In fact, I recommend strongly that you only install PHP 5!)

    PHP 4 is officially past the end of life and is no longer updated or supported
    and there is really no technical reason to have PHP 4.

    Quote Originally Posted by thewebhosting
    I suggest you to install both php4 as well as php5 as some applications cannot run on php5. Hence, need to switch over to php4.
    On the contrary, very nearly every PHP program ever written will work perfectly on PHP 5 without any modifications whatsoever and PHP 5 is fully backwards compatible to PHP 4 so there is absolutely no reason whatsoever to run pure PHP 4 and that goes double given it is past EOL (End of Life).

    There is only 2 methods and 3 rarely used functions which must be rewritten to get an application using those to work properly under PHP 5 and if you found any program using those, you are talking about the extremely rare exception as I think I've only seen one program in the past decade where that was the case and the modification to fix that took all of 5 seconds.

    There was actually never any reason to run both PHP 4 and PHP 5 together and doing so actually caused a lot of compatibility problems but administrators early on several years ago made the mistake of running both under the idea that there were incompatibilities that didn't really exist. The reason for the misconception was that MySQL 5 had been released roughly around the same time as PHP 5 and many people confused the two. While PHP 5 had no significant backwards compatibility issues and worked fine with most all original PHP 4 scripts out there, MySQL 5 did not and often required extensive code modifications to get programs designed for MySQL 4 to work with the newer MySQL 5 database. Since PHP and MySQL coincidentally had the same version numbers at the time, a lot of people got confused.

    All of that was a number of years ago though and is long since old news!

    Bottom line though is "No, you do not need PHP 4!"

  5. #5
    Member rpmws's Avatar
    Join Date
    Aug 2001
    Location
    back woods of NC, USA
    Posts
    1,858

    Default

    i haven't run php4 in 3 years on any of my shared hosting machines. maybe 4 years now. php5 should do it all.
    Just keeping my "eye" on things....
    R. Paul Mathews
    RPMWS - diehard cPanel Nutcase

Similar Threads & Tags
Similar threads

  1. Howto install sqlite on php4 servers ?
    By Ferdinant in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 04-18-2011, 05:27 AM
  2. Apache 2.2 with PHP4
    By JonathanLIVE in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 11-02-2007, 05:41 PM
  3. How to install PHP4.4.2 + PHP 5.1.2?
    By avio in forum cPanel and WHM Discussions
    Replies: 14
    Last Post: 10-06-2006, 07:34 PM
  4. php4.3.4
    By cyo in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 01-07-2004, 07:48 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube