From owner-freebsd-questions@FreeBSD.ORG Thu Nov 23 19:22:35 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8FD5E16A4C8 for ; Thu, 23 Nov 2006 19:22:35 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) Received: from smtp-out4.blueyonder.co.uk (smtp-out4.blueyonder.co.uk [195.188.213.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3F47743D90 for ; Thu, 23 Nov 2006 19:21:41 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from [172.23.170.139] (helo=anti-virus01-10) by smtp-out4.blueyonder.co.uk with smtp (Exim 4.52) id 1GnK9I-0006Bh-6w; Thu, 23 Nov 2006 19:22:16 +0000 Received: from [82.41.32.108] (helo=[192.168.0.2]) by asmtp-out4.blueyonder.co.uk with esmtp (Exim 4.52) id 1GnK9E-0004VD-1U; Thu, 23 Nov 2006 19:22:12 +0000 Message-ID: <4565F4E3.3010609@dial.pipex.com> Date: Thu, 23 Nov 2006 19:22:11 +0000 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.13) Gecko/20061106 X-Accept-Language: en MIME-Version: 1.0 To: VeeJay References: <2cd0a0da0611230634j6bcff387r14d1d8912e3a208c@mail.gmail.com> <4565EBCF.8080008@gmx.net> In-Reply-To: <4565EBCF.8080008@gmx.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Help... Installing from Port 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: Thu, 23 Nov 2006 19:22:35 -0000 Frank Staals wrote: > VeeJay wrote: > >> If I will install Apache2 from the Port, how can I configure to add >> module >> or disable modules? > >> >> If we can configure in Port, so where it could be done and how? and >> if its >> in a file, where it would be placed? >> > > go to the apache2 dir in your portstree ( generally > /usr/ports/www/apache2/ ) run 'make config' to set options, if the > specific options aren't there: copy the Makefile to Makefile.orig and > add the '--enable-OPTION' and '--disable-OPTION' with the other > compile options. > > For apache22 "make show-options" gives you instructions. It is highly unlikely you would need to do anything to the Makefile. You can place the configuration options in /etc/make.conf, or in /usr/local/etc/pkgtools.conf if you use portupgrade, exactly as any other port. For example, I use the following in pkgtools.conf in the MAKE_ARGS section: 'apache-2*' => [ 'WITHOUT_IPV6=1', 'WITH_AUTH_MODULES=1', 'WITH_LDAP_MODULES=1', 'WITH_MISC_MODULES=1', 'WITH_PROXY_MODULES=1', 'WITH_THREADS_MODULES=1', 'WITH_SUEXEC_MODULES=1', 'WITH_DBM=bdb', 'WITH_BERKELEYDB=FreeBSD', ], > Not sure though: but aren't a lot of those options also settable in > the apache config file ? it might be a better idea to check that out > first, so if you ever change your mind about a setting you don't have > to recompile your intire apache2 port. AFAIK, You can use the apache config file to leave out a module which you have compiled, but you can't make use of a module which you haven't compiled. --Alex PS Simply reading /usr/ports/apache22/Makefile would have answered your question about how to set which modules to use.