 |
Your forum announcement here! |
|
 |

04-08-2008, 10:46
|
|
Junior Member
|
|
Join Date: Feb 2008
Posts: 16
|
|
php config
One of my customers has their main web site hosting requiring php4 (which it is running at the mo), however she needs a subdomain to run php5.
I have both versions of php installed on the server, so can you please tell me how to force the subdomain to use the other version of php?
Cheers
|

04-08-2008, 11:17
|
 |
Premium Member
|
|
Join Date: Apr 2007
Location: Manchester, United Kingdom
Posts: 5,701
|
|
I'm no expert but as far as I understood it you couldn't only have one version of PHP running on one account / subdomain.
I'd be interested to learn if there is a way to do this as well, would definitely be useful for testing but I didnt think it was possible 
|

04-08-2008, 12:07
|
 |
Got root?
|
|
Join Date: Aug 2008
Location: England, UK
Posts: 137
|
|
I've had this issue time and time again. Only one version of PHP can be installed on a standalone server, from what I've been told. Which is why large webhosting companies have seperate servers for different versions of PHP / MYSQL etc etc 
__________________
Dan Miller
|

04-08-2008, 12:14
|
 |
Premium Member
|
|
Join Date: Apr 2007
Location: Manchester, United Kingdom
Posts: 5,701
|
|
Thats what I was thinking. Basically you'd need two shared accounts on two servers running different PHP versions. Whatever type of account your on they would need to be based on two servers with the two different PHP versions.
I thought I was right  - thanks for the clarification Daniel  .
|

04-08-2008, 12:50
|
 |
Moderator
|
|
Join Date: May 2007
Location: Newport, Wales
Posts: 892
|
|
Yeh, if you somehow did have two installations of PHP, you'd also need to installations of HTTP which is simply not possible.
__________________
Thomas Williams
JST Hosting
Freephone: 0800 622 6352
|

04-08-2008, 12:53
|
 |
Premium Member
|
|
Join Date: Apr 2007
Location: Manchester, United Kingdom
Posts: 5,701
|
|
Quote:
Originally Posted by WelshTom
Yeh, if you somehow did have two installations of PHP, you'd also need to installations of HTTP which is simply not possible.
|
Woot, gold star for me  .
|

04-08-2008, 15:53
|
|
Junior Member
|
|
Join Date: Feb 2008
Posts: 16
|
|
Well a bit of googleing sorted it...
I already had php4 and 5 running on the same server (definitely possible)
With php4 being the default, I then added a new handler in the relevant .htaccess file to make the subdomain use php5, and all is well
|

04-08-2008, 16:02
|
 |
Got root?
|
|
Join Date: Aug 2008
Location: England, UK
Posts: 137
|
|
It's possible to run both, but HTTP I can't see how you would run both unless you changed the port to the second HTTP to something different.
__________________
Dan Miller
|

04-08-2008, 16:22
|
 |
Premium Member
|
|
Join Date: Apr 2007
Location: Manchester, United Kingdom
Posts: 5,701
|
|
Yer, it does sound extremely experimental and unstable - not something I imagine is recommend in a live environment. Maybe for testing, but if its working for you at the moment.... 
|

04-08-2008, 23:02
|
|
Junior Member
|
|
Join Date: Feb 2008
Posts: 16
|
|
Running php4 and 5 together is supported under cpanel, it is part of the easy apache options
The only query was how to select which handler to use
|

05-08-2008, 06:54
|
 |
Premium Member
|
|
Join Date: Apr 2007
Location: Manchester, United Kingdom
Posts: 5,701
|
|
Name what you want to run in PHP4 with the ".php4" extension and what you want to run in PHP5 with the ".php5" extension.
So in your case name everything on your subdomain with the ".php5" extension and everything else with the ".php4" extension.
From what I read this is a new thing in WHM / cPanel and is highly experimental but if you want to give it a go It'll be interesting to see you get it up and running  .
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
All times are GMT. The time now is 15:44.
|
|
|