From owner-freebsd-ports@FreeBSD.ORG Fri Apr 13 12:05:17 2007 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5139B16A401 for ; Fri, 13 Apr 2007 12:05:17 +0000 (UTC) (envelope-from david@vizion2000.net) Received: from dns1.vizion2000.net (77-99-36-42.cable.ubr04.chap.blueyonder.co.uk [77.99.36.42]) by mx1.freebsd.org (Postfix) with ESMTP id 8749D13C469 for ; Fri, 13 Apr 2007 12:05:16 +0000 (UTC) (envelope-from david@vizion2000.net) Received: by dns1.vizion2000.net (Postfix, from userid 1007) id 35E2E1CC26; Fri, 13 Apr 2007 05:17:20 -0700 (PDT) From: David Southwell Organization: Voice and Vision To: ports@freebsd.org Date: Fri, 13 Apr 2007 05:17:19 -0700 User-Agent: KMail/1.9.6 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200704130517.20063.david@vizion2000.net> Cc: Subject: Re: Mailman setup X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Apr 2007 12:05:17 -0000 On Friday 13 April 2007 02:57:49 you wrote: > On Thursday 12 April 2007 11:44:03 Jeffrey Goldberg wrote: > > On Apr 12, 2007, at 11:56 AM, David Southwell wrote: > > > I am trying to setup mailman and am using apache22 with a number of > > > virtual > > > servers. All the virtual server roots are located on a seperate > > > physical > > > drives with the path to the root > > > being /usr2/virtualwebs/my_virtual_server_name/ > > > > > > After =A0installed from /usr/ports/mail/mailman I find I have the > > > mailman =A0files > > > in /usr/local/mailman. > > > > > > I am puzzled about what files are meant to be placed in the path of > > > the server > > > root..(presumably my_virtual_server_name/mailman). I have looked at > > > docs but > > > if there is info on this I have failed to find it. =A0Should I have > > > compiled > > > with prefix=3D/usr2/virtualwebs/my_virtual_server_name/ or should > > > this be in > > > some config file? > > > > The short answer is apache's Alias and ScriptAlias directives. > > > > Here's a bit of mine > > > > =A0 ScriptAlias /mailman "/usr/local/mailman/cgi-bin" > > =A0 Alias /pipermail "/usr/local/mailman/archives/public" > > =A0 Alias /icons "/usr/local/mailman/icons" > > > > Take a look at > > > > =A0 /usr/local/share/doc/mailman/FreeBSD-post-install-notes > > > > That tell you the kind of thing that you need to do to configure > > apache to find these things. =A0It will also point you to other mailman > > installation material in that directory. > > > > Below is a larger excerpt from my /usr/local/etc/apache22/extras/ > > httpd-vhosts.conf > > > > ## lists.shepard-families.org > > > > DocumentRoot /usr/local/www/apache22/data/lists.shepard-families.org/ > > ServerName lists.shepard-families.org > > ServerAdmin webmaster@goldmark.org > > AddDefaultCharset utf-8 > > ScriptAlias /mailman "/usr/local/mailman/cgi-bin" > > Alias /pipermail "/usr/local/mailman/archives/public" > > Alias /icons "/usr/local/mailman/icons" > > CustomLog /var/log/apache2/lists.shepard-families.org-access_log > > combined > > > > =A0 =A0AllowOverride None > > =A0 =A0Options +ExecCGI -Includes > > =A0 =A0Order allow,deny > > =A0 =A0Allow from all > > > > > > =A0 =A0order allow,deny > > =A0 =A0allow from all > > > > > > =A0 =A0Options +FollowSymLinks > > =A0 =A0order allow,deny > > =A0 =A0allow from all > > > > > > Ideally, it would be nice if the port deposited a sample > > configuration file in /usr/local/etc/apache-VERSION/Includes > > > > But I don't know how to do that with all of =A0the different apache > > ports (which, I believe, differ in how they organize the > > configuration files). > > > > Good luck with this. =A0As you can see I'm running mailman and apache22 > > (and postfix) from ports and am very happy with it. > > > > -j > > Thanks very much - very helpful. > > May I trouble you with two additional questions.. > > 1. File ownership in the /usr/local/mailman hierarchy.. should that remain > in group and owner mailman? All files in my /usr2/virtualwebs/ hierarch a= re > owner & group www. > > 2. What do I need to do to provide a link to mailman from an existing > webpage? I must be missing the obvious I guess..wouldn't be the first > time..but =A0I often find docs do not state stuff that is simple enough f= or > developers to take for granted. =A0When writing docs it is difficult to t= hink > like someone who has never seen their stuff (or perhaps anything like it) > before!!! > > Thanks again > > David Another query.. After making the modifications I have had the following apache error: [root@dns1 /usr/local/mailman/cgi-bin]# /usr/local/sbin/apachectl restart Syntax error on line 26 of /usr/local/etc/apache22/Includes/virtualhosts.co= nf: Invalid command '\xa0', perhaps misspelled or defined by a module not inclu= ded=20 in the server configuration httpd not running, trying to start AllowOverride None Options +ExecCGI -Includes =A0 =A0Order allow,deny =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 I have tried commenting out =A0the line =A0and eventually the whole block b= ut=20 still the error persists BUT always the reported error line coincides with= =20 Order allow,deny Can anyone point me to a solution. Thanks