From owner-freebsd-ports@FreeBSD.ORG Wed Dec 1 23:22:45 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 180FA16A4CE for ; Wed, 1 Dec 2004 23:22:45 +0000 (GMT) Received: from smtp.rdsnet.ro (smtp.rdsnet.ro [62.231.74.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3778343D3F for ; Wed, 1 Dec 2004 23:22:44 +0000 (GMT) (envelope-from itetcu@people.tecnik93.com) Received: (qmail 11368 invoked by uid 89); 1 Dec 2004 23:26:37 -0000 Received: from unknown (HELO it.buh.tecnik93.com) (81.196.204.98) by 0 with SMTP; 1 Dec 2004 23:26:37 -0000 Received: from it.buh.tecnik93.com (localhost.buh.tecnik93.com [127.0.0.1]) by it.buh.tecnik93.com (Postfix) with SMTP id 667C311846; Thu, 2 Dec 2004 01:22:42 +0200 (EET) Date: Thu, 2 Dec 2004 01:22:40 +0200 From: Ion-Mihai Tetcu To: Gerald Herrera Message-ID: <20041202012240.05a03bf0@it.buh.tecnik93.com> In-Reply-To: <41AE4C15.4000705@cnetco.com> References: <41AE4C15.4000705@cnetco.com> X-Mailer: Sylpheed-Claws 0.9.12b (GTK+ 1.2.10; i386-portbld-freebsd5.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: ports@FreeBSD.org Subject: Re: FreeBSD Port: dspam-3.2.2.20041117.1515 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Dec 2004 23:22:45 -0000 On Wed, 01 Dec 2004 15:56:21 -0700 Gerald Herrera wrote: > FreeBSD 5.3 First let my say that I am not happy with the way the cgi part is handled. However I don't know how exactly it can be improved; suggestions documentation and patches are always welcome. > I was trying to install this port, it does not copy the cgi scripts and > support directories to Apache /usr/local/www/data folder. Because when > Apache is loaded the folder /usr/local/www/data is a symbolic link back > to /usr/local/www/data-dist folder. Plus the permissions on both the > cgi-bin-dist & data-dist are read only. First, I don't understand why web data files are not stored on /var; the fact that the apache ports put data-dist under /usr/local it's OK, because those files don't change, but this shouldn't prevent you to put you DocumentRoot in another place. I will change the port to have the default CGI_PATH=${DSPAM_HOME}/CGI/ If you choose the CGI options in the OPTIONS screen, you will get : >> Define CGI_PATH before make-ing if you need the CGI files installed in other place that this installation's default >> /usr/local/www/vhosts/dspam You can define CGI_PATH to be /usr/local/www/data. ( make CGI_PATH=/usr/local/www/data install ) However I don't find this to be a very good idea because putting your own files in data-dist has an unfortunate tendency to break apache portupgrading. > Also, the .htaccess file is not generated in the /usr/local/www/data > folder. Exactly what .htaccess file are you talking about ? > Therefore, manually correcting everything still generates the > errors on a client web browser "system error. I waqs unalbe to determine > your identity." Read the README, it has a section about CGI. Install Apache with suexec enabled, set up a virtualhost for your dspam cgis, run them as user dspam (add that user / group to your system). Here's a virtualhost definition as an example: ServerAdmin root@example.com ServerName dspam.example.com DocumentRoot "/usr/local/vhosts/dspam" User dspam Group dspam UserDir /var/httpd/dspam ScriptAlias /dspam /usr/local/vhosts/dspam/dspam.cgi ScriptAlias /admin /usr/local/vhosts/dspam/admin.cgi PerlModule Apache::PerlRun SetHandler perl-script PerlHandler Apache::PerlRun PerlInitHandler Apache::Reload PerlSendHeader On Options +Includes +ExecCGI AllowOverride None AuthType Basic AuthName "DSPAM Login" AuthUserFile /usr/local/vhosts/dspam/conf/authpasswd.dspam Require valid-user SetHandler perl-script PerlHandler Apache::PerlRun PerlInitHandler Apache::Reload PerlSendHeader On Options +Includes +ExecCGI AllowOverride None AuthType Basic AuthName "DSPAM Admin" AuthUserFile /usr/local/vhosts/conf/authpasswd.dspam Require valid-user Options +Indexes +Includes +ExecCGI -- IOnut Unregistered ;) FreeBSD "user"