From owner-freebsd-questions@FreeBSD.ORG Mon Jun 20 17:52:07 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 E06C916A41C for ; Mon, 20 Jun 2005 17:52:07 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from smtp-out3.blueyonder.co.uk (smtp-out3.blueyonder.co.uk [195.188.213.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7CA1043D53 for ; Mon, 20 Jun 2005 17:52:06 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from [82.41.37.55] ([82.41.37.55]) by smtp-out3.blueyonder.co.uk with Microsoft SMTPSVC(5.0.2195.6713); Mon, 20 Jun 2005 18:52:47 +0100 Message-ID: <42B70245.6030108@dial.pipex.com> Date: Mon, 20 Jun 2005 18:52:05 +0100 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.8) Gecko/20050530 X-Accept-Language: en, en-us, pl MIME-Version: 1.0 To: Nicholas Henry References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 20 Jun 2005 17:52:47.0241 (UTC) FILETIME=[DE398790:01C575C0] Cc: freebsd-questions@freebsd.org Subject: Re: Installing Apache 2 with custom options 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, 20 Jun 2005 17:52:08 -0000 Nicholas Henry wrote: >FreeBSD 5.3-RELEASE (GENERIC) #0: Fri Nov 5 04:19:18 UTC 2004 > >I have apache2 running which I installed from ports. All is running >well. I would like to install the proxy module. As I'm relatively new >to FreeBSD and Unix I'm not sure which is the best way to go. Is there >a way to change the config options before doing a make. How do I do >this so I add to the existing config options with out "overwriting >them". Can you do this with ports? > > I'm not quite sure what you are asking. If you are asking "how do I get make to remember the configuration options I used last time" then the easiest answer is to use sysutils/portupgrade and put your options into /usr/local/etc/pkgtools.conf (which is pretty self documenting when you edit it). Some ports now put the options you used in /var/db/ports/{portname}/options, but apache2 doesn't seem to be one of them yet. So if you didn't make a not of what you picked, you'll have to work them out all over again :-( If you are asking how to re-install apache2 without overwriting changes you made to httpd.conf, then the safest way is to make backup copies before deleting the package and reinstalling. (Easy with portugrgade -f option). Actually, I think the port is clever about this and won't remove the config file if you have changed it, but I'd make backups anyway. Personally, when installing a complex port like apache2, I always try to be generous about what modules etc I compile, and try to include stuff I *might* need even if I have no use for it yet. Only experimental stuff gets left out. Saves a lot of grief when you suddenly find a use for proxying :-) Disk space is nearly always cheaper than time. --Alex