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
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
You'll need ea3 to make this easy.. The CURRENT build should be out next week.
You can follow the tutorial on http://forums.cpanel.net/showthread....highlight=php5
-FL-
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
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?
Hmm, i didnt see that option, will look again. Can this still be done if im using FastCGI and suPHP?
If you did run both, how would you tell the correct one to run your script? Interesting idea I must admit.
Trev
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.
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
Having two php version would not cause server overload??
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.
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.
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