From owner-freebsd-questions@FreeBSD.ORG Fri Feb 22 13:05:10 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 706BA16A403 for ; Fri, 22 Feb 2008 13:05:10 +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 4095913C4DB for ; Fri, 22 Feb 2008 13:05:10 +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 5CCFD1CC8B; Fri, 22 Feb 2008 04:05:09 -0900 (AKST) From: Mel To: freebsd-questions@freebsd.org Date: Fri, 22 Feb 2008 14:05:07 +0100 User-Agent: KMail/1.9.7 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200802221405.08113.fbsd.questions@rachie.is-a-geek.net> Cc: patrick Subject: Re: Multiple versions of PHP 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: Fri, 22 Feb 2008 13:05:10 -0000 On Friday 22 February 2008 04:25:17 patrick wrote: > I've got a new problem... Nope, you've got a shoot yourself in the foot problem. > While I was able to install PHP 5 into a separate location than PHP 4 > (both from ports), See? There's a reason ports use CONFLICTS: the ports are conflicting. I don't know why people advise using prefixes on conflicting ports - it's not a good thing. Actually, it's a bad thing. A really bad thing. This is what jails are for. If the maintainer of the php ports would support having both 4 and 5 installed, he could do it by renaming the CLI binary to php4 and php5 respectively and in the process break many other ports depending on the fact that the cli is called 'php' and more importantly that the pecl-* ports depend on phpize giving them the right information. In short: you'll create a mess. Here's what you do: * Add an IP alias to your network card * Find some free space on the disk * read the instructions in jail(8) * and install php5 (or php4) in the jail. Now you'll have cleanly seperated php installations and no more prefixing, worries about dependencies etc etc. Costs: 400-500M extra diskspace and an alias IP, 2-3 hours of work including the build of dependencies. Gains: too many to mention. -- Mel