Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun Sep 26, 2010 12:25 pm 
Offline

Joined: Sun Sep 26, 2010 12:12 pm
Posts: 1
Hi folks,

I have a legacy app that only runs on PHP 5.2. I have other apps on PHP 5.3.

I use same apache instance with virtual hosting to run multiple sites including the one running legacy app with PHP 5.2.

Has anyone done this with their Linode server ?

I'd appreciate any help on links/docs or pointers on how to do this.

Regards
J.


Top
   
 Post subject:
PostPosted: Sun Sep 26, 2010 4:00 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Run one as an apache module and one as fast cgi and you'll be fine, you can even do this on a virtual host basis by assigning the file handlers in the virtual host.

However I've no idea if you can find packages for both version of php that will install along side each other, I imagine in most distros they will overwrite each other. You may have to compile yourself.


Top
   
 Post subject:
PostPosted: Mon Sep 27, 2010 10:28 am 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
Another way to avoid compiling things yourself (I tend to try to avoid that at all costs as it makes keeping the system up to date a lot harder) is to run a separate system in a chroot jail:

https://help.ubuntu.com/community/BasicChroot

It's very easy to set up, and you can update both outside and inside the chroot jail just by using (twice, obviously) apt-get or aptitude. The downside is that it's kind of overkill, and you'll need a second IP to do it. The upside is that you can have different packages installed inside the chroot jail.


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