From owner-freebsd-questions@FreeBSD.ORG Mon May 12 20:20:51 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DED15106567A for ; Mon, 12 May 2008 20:20:51 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from snoogles.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id B0CB48FC1A for ; Mon, 12 May 2008 20:20:51 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (localhost [127.0.0.1]) by snoogles.rachie.is-a-geek.net (Postfix) with ESMTP id EA48C1CDB9; Mon, 12 May 2008 12:20:50 -0800 (AKDT) From: Mel To: freebsd-questions@freebsd.org, z.szalbot@lc-words.com Date: Mon, 12 May 2008 22:20:47 +0200 User-Agent: KMail/1.9.7 References: <48285A2D.2000804@lc-words.com> In-Reply-To: <48285A2D.2000804@lc-words.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200805122220.48258.fbsd.questions@rachie.is-a-geek.net> Cc: Subject: Re: installing php4 and php5 on one machine X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 May 2008 20:20:52 -0000 On Monday 12 May 2008 16:54:37 Zbigniew Szalbot wrote: > How would you advise me to go about installing php4? I do not think I > will be able to do it from ports (it will require an ancient version of > php 4.10). Also I do not want to mix dependencies and such. Jail for sure. > Another > issue is how to host the site. Use a different port for it (*:8080)? Use > jails (never been in jail so no experience with it so far ;)? > I do have several IPs to play with so I can use them if that helps. Yep, add an IP alias to the external interface, build the jail on that and you're pretty much done (DNS of course being the missing link). There's tools like ezjail in ports, but imo that's more for people who build jails on a regular basis. Also, it is a good idea to do it by hand at least once, so you get a feel for the process and know what's going on underneath the ezjail magic. Believe it or not, the manpage for jail(8) contains a section with the commands to setup a jail from scratch and touches on all the variables required to have it started upon boot. There's more then one reason to do this in a jail. First of all, you can seperate the php versions, something that's not supported by the ports system. Secondly, you can add a second jail where you're going to work the migration on. Once satisfied, you bring them both down, change ip of the new version and wait for bug reports. If it looks like there's too many bugs, you still have the old version available and you can switch the ip's back. You can do this as often as you want, till everything looks good. Thirdly, the cost in memory usage for a jail is negligable compared to the above gains, especially since it will primarily run apache (cron and sshd being the most common other programs). -- Mel Problem with today's modular software: they start with the modules and never get to the software part.