From owner-freebsd-ports@FreeBSD.ORG Fri Apr 13 17:48:18 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 39A5D16A402 for ; Fri, 13 Apr 2007 17:48:18 +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 B325813C480 for ; Fri, 13 Apr 2007 17:48:17 +0000 (UTC) (envelope-from david@vizion2000.net) Received: by dns1.vizion2000.net (Postfix, from userid 1007) id 939861CC89; Fri, 13 Apr 2007 10:42:57 -0700 (PDT) From: David Southwell Organization: Voice and Vision To: Jeffrey Goldberg Date: Fri, 13 Apr 2007 10:42:57 -0700 User-Agent: KMail/1.9.6 References: <200704130517.20063.david@vizion2000.net> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200704131042.57321.david@vizion2000.net> Cc: ports@freebsd.org 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 17:48:18 -0000 On Friday 13 April 2007 06:37:36 Jeffrey Goldberg wrote: > On Apr 13, 2007, at 7:17 AM, David Southwell wrote: > >> 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 are > >> owner & group www. > > Yes, those should remain with the mailman owner and group. You can run > > /usr/local/mailman/bin/check_perms > > to check that most of these are set up correctly. > > This is explained in /usr/local/share/doc/mailman/mailman-install.txt > > >> 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 I often find docs do not state stuff that is simple > >> enough for > >> developers to take for granted. When writing docs it is difficult > >> to think > >> like someone who has never seen their stuff (or perhaps anything > >> like it) > >> before!!! > > This is also in the same document. Once a list is set up, you can > find its main page at > > http://Your.Dom.ain/mailman/listinfo/LISTNAME > > I do understand that it is tricky to figure out which bits of mailman- > install.txt you need to pay attention to. Much of the instructions > there are already done for you by the ports installation. But > setting up mailman for the first time, does require a fair bit of > work to understand a complicated system (particularly if you are not > already familiar with mail transport principles, mailing lists in > general, or Apache configuration). > > Also take a look at > > http://www.gnu.org/software/mailman/site.html > > And > > http://www.python.org/cgi-bin/faqw-mm.py > > You should probably also join the mailman-users mailing list > > http://mail.python.org/mailman/listinfo/mailman-users > > But of course you should check the FAQs before posting a question to > that mailing list. > > > If you feel that it is all a bit much, you can always hire somebody > the help you set things up initially (ask on the mailman-users > list). Once everything is up and running, almost all tasks can be > performed from the web interface. > > > 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.conf: > > Invalid command '\xa0', perhaps misspelled or defined by a module > > not included > > in the server configuration > > httpd not running, trying to start > > What editor did you use to edit the apache configuration file? It > looks like it added some non-printing junk to the file. > > -j very very helpful.. I seem to have hit another snage, which is, I guess something to do with the way my system is set up. The path to my virtual webs is /usr2/virtualwebs/my.virtual.site.name In attempting to create the first list I received no advice email from the list but did find the following errors in httpd-errors-log [Fri Apr 13 10:16:55 2007] [error] [client 192.168.15.1] File does not exist: /usr2/virtualwebs/vizion2000.net/usr2, referer: http://www.vizion2000.net/mailman/create [Fri Apr 13 10:16:55 2007] [error] [client 192.168.15.1] File does not exist: /usr2/virtualwebs/vizion2000.net/usr2, referer: http://www.vizion2000.net/mailman/create [Fri Apr 13 10:16:55 2007] [error] [client 192.168.15.1] File does not exist: /usr2/virtualwebs/vizion2000.net/usr2, referer: http://www.vizion2000.net/mailman/create [Fri Apr 13 10:16:55 2007] [error] [client 192.168.15.1] File does not exist: /usr2/virtualwebs/vizion2000.net/usr2 [Fri Apr 13 10:19:20 2007] [error] [client 192.168.15.1] File does not exist: /usr2/virtualwebs/vizion2000.net/usr2, referer: http://www.vizion2000.net/mailman/create [Fri Apr 13 10:19:20 2007] [error] [client 192.168.15.1] File does not exist: /usr2/virtualwebs/vizion2000.net/usr2, referer: http://www.vizion2000.net/mailman/create [Fri Apr 13 10:19:20 2007] [error] [client 192.168.15.1] File does not exist: /usr2/virtualwebs/vizion2000.net/usr2, referer: http://www.vizion2000.net/mailman/create [Fri Apr 13 10:19:39 2007] [error] [client 192.168.15.1] File does not exist: /usr2/virtualwebs/vizion2000.net/usr2, referer: http://www.vizion2000.net/mailman/listinfo/myhomelist [Fri Apr 13 10:19:39 2007] [error] [client 192.168.15.1] File does not exist: /usr2/virtualwebs/vizion2000.net/usr2, referer: http://www.vizion2000.net/mailman/listinfo/myhomelist [Fri Apr 13 10:19:39 2007] [error] [client 192.168.15.1] File does not exist: /usr2/virtualwebs/vizion2000.net/usr2, referer: http://www.vizion2000.net/mailman/listinfo/myhomelist So clearly mailman is tacking usr2 onto the path for the virtual server whcih I accessed using http://www/vizion2000.net/mailman/create I then tried: [root@dns1 /usr/local/mailman]# fgrep -R usr2 ./* ./Mailman/mm_cfg.py:IMAGE_LOGOS = '/usr2/virtualwebs/icons/' Binary file ./Mailman/mm_cfg.pyc matches ./Mailman/mm_cfg.py~:IMAGE_LOGOS = '/usr2/virtualwebs/icons/' [root@dns1 /usr/local/mailman]# After some digging around I find that mailman is looking for the icons in http://www.vizion2000.net/usr2/virtualwebs/icons/ rather than in /usr2/virtualwebs/icons My mm_cfg.py has the following entry line: IMAGE_LOGOS = '/usr2/virtualwebs/icons/' so it seems as though the path is being read as relative to /usr2/virtualwebs/vizion2000.net rather than as an absolute path. How can I change this behaviour? Thanks in advance David