From owner-freebsd-ports@FreeBSD.ORG Tue Dec 29 18:40:11 2009 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7CF2B1065698; Tue, 29 Dec 2009 18:40:11 +0000 (UTC) (envelope-from david@vizion2000.net) Received: from dns1.vizion2000.net (dns1.vizion2000.net [62.49.197.50]) by mx1.freebsd.org (Postfix) with ESMTP id EEB748FC17; Tue, 29 Dec 2009 18:40:10 +0000 (UTC) Received: by dns1.vizion2000.net (Postfix, from userid 1001) id 9062334D457; Tue, 29 Dec 2009 18:39:49 +0000 (GMT) From: David Southwell Organization: Voice & Vision To: freebsd-ports@freebsd.org, glarkin@freebsd.org Date: Tue, 29 Dec 2009 18:39:49 +0000 User-Agent: KMail/1.12.4 (FreeBSD/7.2-RELEASE-p3; KDE/4.3.4; amd64; ; ) References: <200912291421.16006.david@vizion2000.net> <200912291816.25170.david@vizion2000.net> <4B3A496B.8020204@FreeBSD.org> In-Reply-To: <4B3A496B.8020204@FreeBSD.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200912291839.49522.david@vizion2000.net> Cc: Boris Kochergin Subject: Re: mailman web access to archives failure: 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: Tue, 29 Dec 2009 18:40:11 -0000 > David Southwell wrote: > >> David Southwell wrote: > >>>> David Southwell wrote: > >>>>> Boris Kochergin helpfully said: > >>>>>> David Southwell wrote: > >>>>>>> Thank you in advance for replies. The list is now working fine > >>>>>>> however: From: > >>>>>>> http://www.vizion2000.net/mailman/listinfo/bps_comps_print_announce > >>>>>>> > >>>>>>> On line: > >>>>>>> To see collection of prior postings to the list, visit the > >>>>>>> clicking link for> bps_comps_print_announce Archives > >>>>>>> > >>>>>>> goes to: > >>>>>>> http://www.vizion2000.net/pipermail/bps_comps_print_announce/ > >>>>>>> > >>>>>>> with result: > >>>>>>> Forbidden > >>>>>>> You don't have permission to > >>>>>>> access/pipermail/bps_comps_print_announce/ on this server > >>>>>>> > >>>>>>> Attempt to view archives from Topis Section of the mailing list > >>>>>>> administration page using link for> Go to list archives > >>>>>>> also fails > >>>>>>> > >>>>>>> Extract from httpd-error.log > >>>>>>> [Tue Dec 29 12:50:12 2009] [error] [client 62.49.197.51] attempt to > >>>>>>> invoke directory as script: /usr/local/mailman/cgi-bin/ > >>>>>>> [Tue Dec 29 12:50:47 2009] [error] [client 62.49.197.51] Symbolic > >>>>>>> link not allowed or link target not accessible: > >>>>>>> /usr/local/mailman/archives/public/bps_comps_print_announce, > >>>>>>> referer: > >>>>>>> http://www.vizion2000.net/mailman/listinfo/bps_comps_print_announce > >>>>>>> > >>>>>>> Extract from httpd.conf > >>>>>>> ScriptAlias /mailman /usr/local/mailman/cgi-bin/ > >>>>>>> > >>>>>>> Options FollowSymLinks ExecCGI > >>>>>>> AllowOverride None > >>>>>>> Order allow,deny > >>>>>>> Allow from all > >>>>>>> > >>>>>>> ScriptAlias /pipermail /usr/local/mailman/archives/public/ > >>>>>>> > >>>>>>> Options FollowSymLinks ExecCGI > >>>>>>> AllowOverride None > >>>>>>> Order allow,deny > >>>>>>> Allow from all > >>>>>>> Options Indexes MultiViews > >>>>>>> AddDefaultCharset Off > >>>>>>> > >>>>>>> > >>>>>>> dns1# pwd > >>>>>>> /usr/local/mailman > >>>>>>> dns1# ls -l > >>>>>>> total 36 > >>>>>>> drwxrwsr-x 11 mailman mailman 2048 Dec 29 09:03 Mailman > >>>>>>> drwxrwsr-x 4 www www 512 Dec 28 13:07 archives > >>>>>>> drwxrwsr-x 2 root mailman 1024 Dec 28 13:07 bin > >>>>>>> drwxrwsr-x 2 root mailman 512 Dec 28 13:07 cgi-bin > >>>>>>> drwxrwsr-x 2 root mailman 512 Dec 28 13:07 cron > >>>>>>> drwxrwsr-x 2 mailman mailman 512 Dec 28 15:54 data > >>>>>>> drwxrwsr-x 2 root mailman 512 Dec 28 13:07 icons > >>>>>>> drwxrwsr-x 6 mailman mailman 512 Dec 28 15:45 lists > >>>>>>> drwxrwsr-x 2 root mailman 512 Dec 29 14:00 locks > >>>>>>> drwxrwsr-x 2 mailman mailman 512 Dec 29 09:04 logs > >>>>>>> drwxrwsr-x 2 root mailman 512 Dec 28 13:07 mail > >>>>>>> drwxrwsr-x 37 root mailman 512 Dec 28 13:07 messages > >>>>>>> drwxrwsr-x 5 root mailman 512 Dec 28 13:07 pythonlib > >>>>>>> drwxrwsr-x 11 mailman mailman 512 Dec 28 15:54 qfiles > >>>>>>> drwxrwsr-x 2 root mailman 512 Dec 28 13:07 scripts > >>>>>>> drwxrwsr-x 2 root mailman 512 Dec 28 13:07 spam > >>>>>>> drwxrwsr-x 38 root mailman 512 Dec 28 13:07 templates > >>>>>>> drwxrwsr-x 4 root mailman 512 Dec 28 13:07 tests > >>>>>>> dns1# cd archives > >>>>>>> dns1# ls -l > >>>>>>> total 4 > >>>>>>> drwxrws--- 10 www www 512 Dec 28 15:45 private > >>>>>>> drwxrwsr-x 2 www www 512 Dec 28 15:46 public > >>>>>>> dns1# cd private > >>>>>>> dns1# ls -l > >>>>>>> total 16 > >>>>>>> drwxrwsr-x 2 www www 512 Dec 19 17:58 bps_comp_print_chat > >>>>>>> drwxrwsr-x 2 www www 512 Dec 19 17:58 bps_comp_print_chat.mbox > >>>>>>> drwxrwsr-x 2 www www 512 Dec 19 17:57 bps_comp_print_reminders > >>>>>>> drwxrwsr-x 2 www www 512 Dec 19 17:57 > >>>>>>> bps_comp_print_reminders.mbox drwxrwsr-x 4 www www 512 Dec 29 > >>>>>>> 03:27 bps_comps_print_announce drwxrwsr-x 2 www www 512 Dec 28 > >>>>>>> 15:54 bps_comps_print_announce.mbox drwxrwsr-x 2 www www 512 Dec > >>>>>>> 28 15:45 mailman > >>>>>>> drwxrwsr-x 2 www www 512 Dec 28 15:45 mailman.mbox > >>>>>>> dns1# cd ../public > >>>>>>> dns1# ls -l > >>>>>>> total 0 > >>>>>>> lrwxr-xr-x 1 www www 55 Dec 19 17:58 bps_comp_print_chat -> > >>>>>>> /usr/local/mailman/archives/private/bps_comp_print_chat > >>>>>>> lrwxr-xr-x 1 www www 60 Dec 19 17:57 bps_comp_print_reminders -> > >>>>>>> /usr/local/mailman/archives/private/bps_comp_print_reminders > >>>>>>> lrwxr-xr-x 1 www www 60 Dec 19 17:56 bps_comps_print_announce -> > >>>>>>> /usr/local/mailman/archives/private/bps_comps_print_announce > >>>>>>> dns1# cd > >>>>>>> /usr/local/mailman/archives/private/bps_comps_print_announce dns1# > >>>>>>> ls -l > >>>>>>> total 14 > >>>>>>> drwxrwsr-x 2 www www 512 Dec 28 15:54 2009-December > >>>>>>> -rw-rw-r-- 1 www www 2870 Dec 28 15:54 2009-December.txt > >>>>>>> -rw-rw-r-- 1 www www 1356 Dec 29 03:27 2009-December.txt.gz > >>>>>>> drwxrws--- 2 www www 512 Dec 28 15:54 database > >>>>>>> -rw-rw-r-- 1 www www 1110 Dec 28 15:54 index.html > >>>>>>> -rw-rw---- 1 www www 870 Dec 28 15:54 pipermail.pck > >>>>>>> dns1# > >>>>>>> > >>>>>>> Thanks in advance > >>>>>> > >>>>>> The two Alias lines I have in my working installation are: > >>>>>> > >>>>>> ScriptAlias /mailman "/usr/local/mailman/cgi-bin" > >>>>>> Alias /pipermail "/usr/local/mailman/archives/public" > >>>>>> > >>>>>> -Boris > >>>>> > >>>>> Changed those but still have the problem. > >>>>> Could you possible compare my owner:group and permissions with the > >>>>> setting in your working /usr/local/mailman/ hierarchy? Maybe the > >>>>> problem lies there. > >>>>> > >>>>> Thanks > >>>>> david > >>>> > >>>> A recursive listing of /usr/local/mailman is up at > >>>> http://acm.poly.edu/~spawk/mailman/mailman.txt, with the two relevant > >>>> Apache configuration files, in full, also in that directory. > >>>> > >>>> -Boris > >>> > >>> Thank you Boris > >>> > >>> After reading your files I changed the httpd.conf to follow your format > >>> but it still did not work :-(. > >>> > >>> Here are my entries: > >>> > >>> > >>> # This should be changed to whatever you set DocumentRoot to. > >>> # > >>> > >>> # > >>> # Possible values for the Options directive are "None", "All", > >>> # or any combination of: > >>> # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI > >>> MultiViews > >>> # > >>> # Note that "MultiViews" must be named *explicitly* --- "Options > >>> All" # doesn't give it to you. > >>> # > >>> # The Options directive is both complicated and important. Please > >>> see # http://httpd.apache.org/docs/2.2/mod/core.html#options > >>> # for more information. > >>> # > >>> Options Indexes FollowSymLinks > >>> > >>> # > >>> # AllowOverride controls what directives may be placed in .htaccess > >>> files. # It can be "All", "None", or any combination of the keywords: # > >>> Options FileInfo AuthConfig Limit > >>> # > >>> AllowOverride None > >>> > >>> # > >>> # Controls who can get stuff from this server. > >>> # > >>> Order allow,deny > >>> Allow from all > >>> > >>> > >>> ScriptAlias /mailman " /usr/local/mailman/cgi-bin" > >>> > >>> Options ExecCGI > >>> Order allow,deny > >>> Allow from all > >>> > >>> Alias /pipermail "/usr/local/mailman/archives/public" > >>> > >>> Options ExecCGI FollowSymLinks > >>> Order allow,deny > >>> Allow from all > >>> Options Indexes MultiViews > >>> AddDefaultCharset Off > >>> DirectoryIndex index.html > >>> > >>> # > >>> > >>> Seems I am struggling with this. > >>> > >>> Thanks again for all your help. Lets hope I can someone can spot > >>> something soon. These things are usually caused by a daft error on my > >>> part!! > >>> > >>> David > >> > >> One difference between our setups, and relevant to your symlink-related > >> error message, are the ownership and permissions of the > >> /usr/local/mailman/archives/private directory. Mine is owned by > >> mailman:mailman, whereas yours is www:www. Mine also has the > >> world-execute permission, but let's play with the ownership first. Can > >> you chown yours to mailman:mailman? > >> > >> -Boris > >> _______________________________________________ > > > > Thanks Boris > > > > dns1# ls -l > > total 4 > > drwxrws--- 10 root mailman 512 Dec 28 15:45 private > > drwxrwsr-x 2 root mailman 512 Dec 28 15:46 public > > dns1# chown -R mailman:mailman ./private > > dns1# > > > > And still got: > > [Tue Dec 29 18:11:28 2009] [error] [client 62.49.197.51] Symbolic link > > not allowed or link target not accessible: > > /usr/local/mailman/archives/public/bps_comps_print_announce, referer: > > http://www.vizion2000.net/mailman/admin/bps_comps_print_announce > > > > in the log > > > > Thanks > > > > David > > David, > > Just for grins - what happens if you change the permissions on the > private directory to 777? If you still get the "forbidden" error, then > we know that the problem is elsewhere. > > Regards, > Greg > The grinz are the best thing out... I get there!!! with: dns1# ls -l total 4 drwxrws--- 10 mailman mailman 512 Dec 28 15:45 private drwxrwsr-x 2 root mailman 512 Dec 28 15:46 public dns1# chmod -R 777 ./private dns1#