From owner-freebsd-questions@FreeBSD.ORG Mon Nov 12 14:48:47 2007 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 F0E5D16A421 for ; Mon, 12 Nov 2007 14:48:47 +0000 (UTC) (envelope-from futuristick@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.182]) by mx1.freebsd.org (Postfix) with ESMTP id 860ED13C481 for ; Mon, 12 Nov 2007 14:48:47 +0000 (UTC) (envelope-from futuristick@gmail.com) Received: by py-out-1112.google.com with SMTP id u77so1346542pyb for ; Mon, 12 Nov 2007 06:48:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:mime-version:in-reply-to:references:content-type:message-id:content-transfer-encoding:from:subject:date:to:x-mailer; bh=o1PGO+okGpyIIMbuuFRug4UieZkvDmj+Nq0KsV44pIA=; b=t9TDSGWtV6i9oRwdBklNv1ewzNg++gyEWMXZyuojHBmyn0kFQJFvw8krKUQsG0AdjPG48SLV1XK1SMg/5mfFU9WhW2QMBcuScE9LeI2tpjZtI1zk2SFCbBp6gR+9jiO5L9GjVA5ixhboK7tbYWpJTvK3tRvvmm/7lGlD85jtY9c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:mime-version:in-reply-to:references:content-type:message-id:content-transfer-encoding:from:subject:date:to:x-mailer; b=fjPs4jtg9q6A7uw6Jx2JCmLZlQ0MnJZ3+E+Im1O4xPc3ZB1ESCtv1xEMfJeFvbf+AfKPk9+LDt6h6ryT0IffpIW0tPUQvpna/PMQc4ndMf72V2oVBp9m/EugOeYylYFrsIENInysJT66vQMOXP2hkFSV1igmTBZVUGIuIlk6WP0= Received: by 10.65.115.4 with SMTP id s4mr14023319qbm.1194878916849; Mon, 12 Nov 2007 06:48:36 -0800 (PST) Received: from ?192.168.0.101? ( [24.18.73.16]) by mx.google.com with ESMTPS id p4sm3640493qba.2007.11.12.06.48.34 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 12 Nov 2007 06:48:35 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: <6345B48D-949A-4044-BA85-7628EE3F83DD@gmail.com> References: <4D07F1BA-F6C2-473F-89C6-E760FD770313@gmail.com> <4736C6F1.4030308@infracaninophile.co.uk> <6345B48D-949A-4044-BA85-7628EE3F83DD@gmail.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <3D1CE38B-BD89-44BF-AEA1-093BC102D983@gmail.com> Content-Transfer-Encoding: 7bit From: futuristick Date: Mon, 12 Nov 2007 06:48:31 -0800 To: freebsd-questions@freebsd.org X-Mailer: Apple Mail (2.752.2) Subject: Re: apache13-modperl problem: mod_dir, mod_mime 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, 12 Nov 2007 14:48:48 -0000 I've solved it for now; forget to add the Listen directive! (And I reinstalled Apache for good measure after backing up conf). ~Doug On Nov 11, 2007, at 11:40 AM, futuristick wrote: > Thank you! I have located modules in /usr/local/libexec/apache and > have added them in the correct order to my httpd.conf. > > However, apache does not want to start. > > sudo /usr/local/etc/rc.d/apache start > yields > Starting apache > with no errors, yet sockstat -4 reveals that httpd is not running. > My httpd.pid file is in a directory > which is owned by the user and group apache should run under (www/ > www). > > ServerType standalone > ServerRoot "/usr/local" > PidFile /var/run/apache/httpd.pid > ScoreBoardFile /var/run/apache/httpd.scoreboard > ResourceConfig /dev/null > AccessConfig /dev/null > > > > Port 3000 > User www > Group www > ServerAdmin me@email.com > UseCanonicalName Off > ServerSignature Off > HostnameLookups Off > ServerTokens Prod > > My firewall script allows binding to port 3000, so I'm at a loss here. > > On Nov 11, 2007, at 1:10 AM, Matthew Seaman wrote: > >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA256 >> >> futuristick wrote: >> >>> I have installed apache13-modperl from ports because I want to run a >>> simple photoblog. However, there was no 'make config' option for >>> modules, and here is the output of httpd -l: >>> >>> Compiled-in modules: >>> http_core.c >>> mod_so.c >>> mod_perl.c >>> suexec: disabled; invalid wrapper /usr/local/sbin/suexec >>> >>> I don't understand why mod_dir and mod_mime aren't installed by >>> default. >>> How can I serve pages without these? How can I get these modules >>> installed? (I don't know where, if any, the .so files might be). >> >> Not having an OPTIONS dialog is just a symptom of the age of the >> port and that the possibility of implementing such a thing has not >> yet risen to the top of the maintainer's TODO list. OPTIONS are not >> mandatory in the ports system -- you can still use the original and >> in some circumstances superior method of defining compilation flags >> on the command line or (more usefully) in /etc/make.conf >> >> However, the only way to find out what flags are available is by >> looking at what the Makefile provides. In the case of apache13- >> modssl >> the Makefile is really rather complex, but the maintainer has >> provided some handy documentation of what can be tweaked: >> >> % cd /usr/ports/www/apache13-modssl >> % make pre-fetch >> >> As it transpires, the apache13-modssl port doesn't give you a >> huge amount of flexibility as to how the module load is configured. >> There are about 4 -- 5 optional modules you can enable or disable >> completely, most of which I doubt you'll have any need for, although >> suexec is possibly an exception that you may want. >> >> Otherwise you get the default setup from the Apache configuration >> system as invoked with the following flags: >> >> --enable-module=most \ >> --enable-module=auth_db \ >> --enable-module=mmap_static \ >> --disable-module=auth_dbm \ >> --enable-shared=max \ >> --enable-module=ssl \ >> --enable-module=define \ >> >> That is, everything standard except experimental modules and >> auth_dbm is >> enabled, plus auth_db, mmap_static and ssl. Modules are >> configured as loadable modules rather than compiled in. That >> gives you maximum >> flexibility and maximum control over how large your apache processes >> will grow but adds a layer of indirection to various pointer lookups >> which will add a few percent to the time it takes to serve a page. >> Unless you're trying to run your server at the absolute max, that is >> almost definitely the correct choice. >> >> mod_dir and mod_mime are certainly installed and available as part of >> the default package. Look in /usr/local/etc/libexec/apache to >> find the >> loadable modules themselves. Look at the 'LoadModule' lines in >> /usr/local/etc/apache/httpd.conf to see what is being loaded at >> runtime >> - -- the default is to load everything available. >> >> Cheers, >> >> Matthew >> >> - -- >> Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard >> Flat 3 >> PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate >> Kent, CT11 9PW >> -----BEGIN PGP SIGNATURE----- >> Version: GnuPG v2.0.4 (FreeBSD) >> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org >> >> iD8DBQFHNsbx8Mjk52CukIwRCEzAAKCU8GVX/gj1eoqi4VAnJtZlj+Pp4wCfccLi >> sch16WtyVVoq0bmrcQRBoJA= >> =eX9t >> -----END PGP SIGNATURE----- >