From owner-freebsd-questions@FreeBSD.ORG Wed May 31 13:09:31 2006 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 9D01B16A8D8 for ; Wed, 31 May 2006 13:09:31 +0000 (UTC) (envelope-from freebsd@meijome.net) Received: from sigma.octantis.com.au (ns2.octantis.com.au [207.44.189.124]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2A1F343D77 for ; Wed, 31 May 2006 13:09:31 +0000 (GMT) (envelope-from freebsd@meijome.net) Received: (qmail 24348 invoked from network); 31 May 2006 23:09:30 +1000 Received: from 210-84-41-231.dyn.iinet.net.au (HELO localhost) (210.84.41.231) by sigma.octantis.com.au with (DHE-RSA-AES256-SHA encrypted) SMTP; 31 May 2006 23:09:30 +1000 Date: Wed, 31 May 2006 23:09:25 +1000 From: Norberto Meijome To: David Landgren Message-ID: <20060531230925.1712840f@localhost> In-Reply-To: <447D5D11.9050604@landgren.net> References: <447D5D11.9050604@landgren.net> X-Mailer: Sylpheed-Claws 2.2.0 (GTK+ 2.8.18; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Adding an extra Apache DSO module after 'make install' 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: Wed, 31 May 2006 13:09:39 -0000 On Wed, 31 May 2006 11:08:33 +0200 David Landgren wrote: > Having built an Apache 2.0.58 from ports and watching it run, I realise > that I forgot to include mod_negotiation. Is it possible to return the > the ports directory, rebuild the package, it comes installed by default.in the precompiled package, in case you havent done any tweaking of the build params > this time with the addition > module, and simply take the built mod_negotation.so and add it to the > libexec/apache2 directory? as root, edit /var/db/ports/apache20/options, set to true the one you want (or add it if not there). If you cant figure which one it is, delete that dir in /var/db/ports and run make config in the port dir. Then : cd /usr/ports/www/apache20 make apachectl stop make deinstall make reinstall apachectl start > > Either that, or is there a more general method within the ports > framework of taking a mod_*.c file and converting it to a DSO for > inclusion with httpd after the fact? there may be if building apache from source outside of ports. For me it's not worth the effort of trying to figure it out each time. > I.e, if possible I would like to > avoid reinstalling the httpd world, but on the other hand, I don't want > the new .so file to cause a segfault because of some sort of API mismatch. you'd only have to build apache again (not that bad)... there are actually 116 different mod_ ported individually... it would be cool to have the default ones that come w/apache too :) Beto