Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 20
  1. #1
    Registered User
    Join Date
    Sep 2007
    Posts
    1

    Default php4 + php5

    Hello, I have php 4.4.7 on my server, I need a tutorial on how to install php 5 with php 4 still installed. So that way I can change the line in htaccess so that way different sites can run php 4 or 5

  2. #2
    cPanel Staff cpanelnick's Avatar
    Join Date
    Feb 2003
    Location
    Houston, TX
    Posts
    4,597

    Default

    You'll need ea3 to make this easy.. The CURRENT build should be out next week.

  3. #3
    Member
    Join Date
    Sep 2003
    Posts
    126

    Default

    You can follow the tutorial on http://forums.cpanel.net/showthread....highlight=php5

    -FL-

  4. #4
    Member This forum account has been confirmed by cPanel staff to represent a vendor.
    Join Date
    Apr 2004
    Posts
    621

    Default

    Btw, I have wrote that HOWTO.
    If you need, I may install you with PHP4 as secondary PHP (for those with old scripts) while having PHP5 as main PHP (either via phpsuexec or as CGI).

    PM for details as it is not Ads forum.
    Reliable web-hosting, good resellers plans, web-design.
    ISProHosting.com

  5. #5
    Member
    Join Date
    Sep 2003
    Posts
    124

    Default

    The new easy apache 3 gives the impression that you can have the option of running php5 and php4 at the same time, but during the configuration, I didnt see the option to do both. Did i miss something?

  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 MACscr View Post
    The new easy apache 3 gives the impression that you can have the option of running php5 and php4 at the same time, but during the configuration, I didnt see the option to do both. Did i miss something?
    On the screen Profile :: Apache :: PHP Main check both the PHP 4 and PHP 5 to run both simultaneously.

  7. #7
    Member
    Join Date
    Sep 2003
    Posts
    124

    Default

    Hmm, i didnt see that option, will look again. Can this still be done if im using FastCGI and suPHP?

  8. #8
    Member
    Join Date
    Nov 2003
    Posts
    67

    Default

    If you did run both, how would you tell the correct one to run your script? Interesting idea I must admit.

    Trev

  9. #9
    Member
    Join Date
    Sep 2003
    Posts
    124

    Default

    Trev,

    People have been running php4 and php5 at the same time for a couple years now, it just wasnt officially supported by cpanel. Whatever php version is set as the secondary, you can either use .php4 (when php4 is secondary) to use it or setup an htaccess file in that folder that sets AddType to use that particular version of php for all php files in that directory.

  10. #10
    Member
    Join Date
    Nov 2003
    Posts
    67

    Default

    Ah, now that makes a load of sense...! Not entirely sure why anyone would want to do it mind you, but I'm sure there are good reasons to keep scripts in the dark ages.

    Trev

  11. #11
    Member
    Join Date
    Sep 2004
    Posts
    523

    Default

    Having two php version would not cause server overload??

  12. #12
    cPanel Staff
    Join Date
    Mar 2004
    Posts
    704

    Default

    ea3 (EDGE and CURRENT) you can select PHP4 and PHP5 from the UI.

    At the end of the build it tells you where you can go to configure how both PHPs are setup to work.

    Any options that don't mix will likley error out the build process and know requirements and conflict are setup in a dependency algorythm. If we come across new one we can add them quickly.

  13. #13
    Member
    Join Date
    Sep 2004
    Posts
    523

    Default

    I ask my question again, Having two php version would not cause server overload?? How does it impact on server performance??

  14. #14
    cPanel Staff
    Join Date
    Mar 2004
    Posts
    704

    Default

    Quote Originally Posted by bsasninja View Post
    I ask my question again, Having two php version would not cause server overload?? How does it impact on server performance??
    As far as apache goes, its just another module so the question doesn't really make sense. Performance depends on how much either one is used and in what way.

    For example by means of hyperbole:

    Having PHP4 and PHP5 with no one using PHP will not use too many resources vs. having PHP4 and PHP5 with 1,000,000 users each running an imap webclient on their sites being heavly accessed will have exponentially more resources being used.

    In other words simply having both should not add to much besides a bigger footprint for apache since there is one more module.

  15. #15
    Member
    Join Date
    May 2005
    Location
    Auburn, CA
    Posts
    243

    Default

    Quote Originally Posted by trevHCS View Post
    Ah, now that makes a load of sense...! Not entirely sure why anyone would want to do it mind you, but I'm sure there are good reasons to keep scripts in the dark ages.

    Trev
    I doubt anyone wants to "keep [their] scripts in the dark ages", it's more a question of making sure everything works during the transition. That and there is plenty of software that's not PHP5 compliant yet, that many website owners and web hosts depend on.

    There's also an emerging number of products that *only* work on PHP5. That would be reason alone to run both. It seems to me 5 should be backward complaint, but I guess not.

    It's a lot like XP vs Vista.
    cPanel: Latest Release Version [11.32.2.*]
    PHP 5.3.10, Apache 2.2.22, MySQL 5.1.56, Perl 5.8.8, CentOS 6.2

Similar Threads & Tags
Similar threads

  1. How to php4 and php5 (.php5) in same server?
    By strikinado in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-09-2007, 11:01 AM
  2. PHP4 or PHP5?
    By zigzam in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 05-09-2007, 08:37 AM
  3. php5 and php4
    By SACHIN in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 01-26-2007, 02:04 PM
  4. PHP4 to PHP5
    By iti in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-04-2004, 02:15 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube