From owner-freebsd-questions@FreeBSD.ORG Sat Jul 16 08:59:31 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3B15E16A41C for ; Sat, 16 Jul 2005 08:59:31 +0000 (GMT) (envelope-from ltsampros@upnet.gr) Received: from mail.vivodinet.gr (mail3.vivodinet.gr [80.76.39.13]) by mx1.FreeBSD.org (Postfix) with SMTP id 8527343D46 for ; Sat, 16 Jul 2005 08:59:27 +0000 (GMT) (envelope-from ltsampros@upnet.gr) Received: (qmail 23595 invoked from network); 16 Jul 2005 08:59:15 -0000 Received: from dslcustomer-222-89.vivodi.gr (HELO bifteki.home.net) (83.171.222.89) by 0 with SMTP; 16 Jul 2005 08:59:15 -0000 Received: from bifteki.home.net (localhost [127.0.0.1]) by bifteki.home.net (8.13.3/8.13.3) with ESMTP id j6GBwjEE000969; Sat, 16 Jul 2005 11:58:55 GMT (envelope-from gaghiel@bifteki.home.net) Received: (from gaghiel@localhost) by bifteki.home.net (8.13.3/8.13.3/Submit) id j6GBwjpI000968; Sat, 16 Jul 2005 11:58:45 GMT (envelope-from gaghiel) Date: Sat, 16 Jul 2005 11:58:45 +0000 From: Tsampros Leonidas To: Ksenia Marasanova Message-ID: <20050716115845.GA815@bifteki.lan> References: <130df193050715165114553342@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <130df193050715165114553342@mail.gmail.com> User-Agent: Mutt/1.5.9i Cc: freebsd-questions@freebsd.org Subject: Re: install Apache1 and Apache2 on the same server 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: Sat, 16 Jul 2005 08:59:31 -0000 On Sat, Jul 16, 2005 at 01:51:32AM +0200, Ksenia Marasanova wrote: > Greetings, > > I have FreeBSD box that runs Apache1 from ports. Now I'd like to > install Apache2 from ports (and run it on different IP), without > overwriting httpd binary of Apache1. What would be the correct, > port-friendly :) way to do it? (I also use portupgrade, it would be > nice if portupgrade will still be able to upgrade both ports) > > Any tips or pointers to man pages are appreciated. > > Thanks! > When installing applications from the ports tree , there is a way through tha Makefiles to define conflicts with other ports that may be installed. By looking at www/apache20/Makefile, i can see this one: CONFLICTS= apache+mod_ssl-1.* apache+mod_ssl+ipv6-1.* apache+mod_ssl+modsnmp-1.* \ apache+mod_ssl+mod_snmp+ipv6-1.* apache+mod_ssl+mod_accel-1.* \ apache+mod_ssl+mod_snmp+mod_accel-1.* \ apache+ipv6-1.* apache+ssl-1.* apache-1.* apache_fp-1.* \ caudium-devel-1.* caudium10-1.* caudium12-* \ ru-apache+mod_ssl-1.* ru-apache-1.* thttpd-2.* Apparently you can't have both apaches. But you could install apache20 manually, with --prefix=/usr/local/apache2 , setting up any links with the binaries installed to /usr/local/bin and /usr/local/sbin and then upgrading should be easy enough. You'll just rm -rf /usr/local/apache2 and reinstall the new version. Also care must be taken during apache's configuration. Apache2 won't listen to the already binded address (the one used by apache1).