Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Nov 09, 2010 6:52 pm 
Offline
Junior Member

Joined: Sun Sep 26, 2010 6:12 am
Posts: 20
AOL: 36+Peterborough+Road
Location: Southampton, UK
Hey guys,

Does anyone have any experience of installing php4 alongside php5 and then switching between the two on a per site basis?

I've seen it done on shared hosting but not sure where to start on my own server.

I've already got php5 installed but I'm concerned that if I can stumbling in and blindly install php4 it'll somehow overwrite 5.

Any pointers would be much appreciated.

Cheers,
Terry


Top
   
 Post subject:
PostPosted: Tue Nov 09, 2010 8:49 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
What's your distribution? Do you have a specific script that absolutely requires PHP4, or are you just trying to see if it's possible?

Howtoforge used to have some tutorials for installing both PHP4 and PHP5 using (Fast)CGI, but that was several years ago.

Most distros don't even ship PHP4 these days, because PHP4 hasn't received security update in over two years. You may have to hunt down the 4.4.9 source code and compile it yourself.

The web hosts that still support PHP4 do so at their own risk. Actually, if I were choosing a web host, I'd avoid the ones that even mentioned PHP4 because it's a time bomb just waiting to blow up.


Top
   
 Post subject:
PostPosted: Thu Nov 11, 2010 3:35 pm 
Offline
Junior Member

Joined: Sun Sep 26, 2010 6:12 am
Posts: 20
AOL: 36+Peterborough+Road
Location: Southampton, UK
Heya,

Thanks for the reply.

I'm running Ubuntu but to be honest, I've decided it's not worth the effort!

Cheers anyway,
Terry


Top
   
 Post subject:
PostPosted: Sat Nov 13, 2010 5:20 am 
Offline
Newbie

Joined: Sat Nov 13, 2010 5:15 am
Posts: 2
WLM: ticktacuk@hotmail.com
Location: UK
Hi

I have done it on a lot of servers, I installed PHP5 using packages but installed PHP4 using source code. I then setup apache using a proxy so port 80 went to PHP5 and port 81 went to a different apache instance that ran PHP4.

You then setup the v-hosts so that the sites you want to run PHP4 are redirected using the proxy to the PHP4 instance on port 81.

Its messy, but it did work well. Problems were logging, updates etc...

We have now dropped to PHP5 across the board

Hope it gives you some ideas

Nerual


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group