Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Nov 17, 2004 3:09 am 
Offline
Newbie

Joined: Wed Nov 17, 2004 3:00 am
Posts: 4
Does anyone have a good way using a single Linode to run both a staging and production environment at the same time?

For example, I could upgrade to a later mod_perl version on the staging area, test out the websites to make sure they work, and if so, make the change on the production area. Is this possible? I read a post here about someone wanting to use UML for that purpose, but that thread ended with the advice that it was a bad idea to use UML for that purpose (mainly because of system resources, etc.).

Is there a good way to upgrade or change configurations without affecting active websites?


Top
   
 Post subject:
PostPosted: Wed Nov 17, 2004 3:56 am 
Offline
Senior Member

Joined: Fri Aug 06, 2004 5:49 pm
Posts: 158
Putting UML aside, I've done it with PHP between versions 4 and 5 by using CGI versions, keeping PHP4 on the main server, while throwing a virtual host up configured with the same DocumentRoot, but running PHP5. I don't think it's possible using apache modules for both, but you could keep production on mod_perl then use cgi perl on virtual host...


Top
   
 Post subject:
PostPosted: Thu Nov 18, 2004 1:13 pm 
Offline
Newbie

Joined: Wed Nov 17, 2004 3:00 am
Posts: 4
That sounds interesting, tierra. But I was even thinking more big picture than that as far as upgrading or changing programs on the Linode (in other words, changing more than just the webserver environment).

What I may do is keep a Gentoo box at home configured the same as my Linode and use that as my staging server. The only major disadvantage of this is that it is not REALLY the same, because any quirks caused by the UML subsystem on the real server would not show up on my home system (although I would think a problem like that would be rare).

Does anyone know of a case where a given Linux system did not behave the same on a Linode as it did on real hardware?


Top
   
 Post subject:
PostPosted: Thu Nov 18, 2004 3:08 pm 
Offline
Senior Member

Joined: Sun Nov 14, 2004 6:37 pm
Posts: 138
Website: http://oldos.org
WLM: jasonlfaulkner@hotmail.com
Yahoo Messenger: jasonfncsu
AOL: jaylfaulkner
Location: NC, USA
Interesting that this be posted now, I was thinking of doing the exact same thing in VMWare with my CentOS system

_________________
Jay Faulkner
http://oldos.org


Top
   
 Post subject:
PostPosted: Fri Nov 19, 2004 12:03 pm 
Offline
Junior Member

Joined: Thu Jun 03, 2004 2:57 pm
Posts: 23
Well, you could always use a UML linux kernel on your home box....


Top
   
 Post subject:
PostPosted: Fri Nov 19, 2004 3:47 pm 
Offline
Junior Member

Joined: Thu Jun 03, 2004 4:04 pm
Posts: 42
Don't know if it is against Linode policy, but you can nest UML sessions.

http://jdike.stearns.org/uml/nesting.html


Top
   
 Post subject: chroot?
PostPosted: Fri Nov 19, 2004 6:31 pm 
Offline
Senior Member

Joined: Sat Dec 13, 2003 12:39 pm
Posts: 98
Just an idea, maybe you could run the test stuff under a chroot area. I ran into a similar situation trying to remotely convert a redhat box (not linode) to debian, and was able to do it by making a new partition, do a chroot to it to install debian. (I sure did appreciate Linode after going through that process, by the way) The point it you can install new library versions etc in the chroot area and when you run from in there it will use them instead of the main boot versions.


Top
   
 Post subject: Re: chroot?
PostPosted: Sat Nov 20, 2004 4:07 pm 
Offline
Senior Member

Joined: Sat Jun 28, 2003 12:02 am
Posts: 66
Website: http://kenny.aust.in
kiomava wrote:
Just an idea, maybe you could run the test stuff under a chroot area.

This is what I do. You can configure apache on the jail to run on a different port, then bind mount
Code:
mount --bind /var/www $yourjail/var/www

your webroot so the pages exist in both places.. works well for letting users/customers/etc test stuff out before you do the full upgrade.

Kenny


Top
   
 Post subject:
PostPosted: Wed Nov 24, 2004 12:33 am 
Offline
Newbie

Joined: Wed Nov 17, 2004 3:00 am
Posts: 4
wirehead wrote:
Well, you could always use a UML linux kernel on your home box....


I had that thought a couple days ago... I wonder how much of a performance difference there is between the usermode Gentoo kernel and gentoo_dev_sources.


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


Who is online

Users browsing this forum: dobriain 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