[freeside] setup help (Mason & Apache problem)
ivan at 420.am
ivan at 420.am
Fri Jun 6 11:38:03 PDT 2003
You're using the handler.pl for Mason verisons 1.1x and above with an
early 1.0x version of Mason. Upgrade to a current Mason, or follow the
directions in httemplate/docs/install.html regarding Mason version prior
to 1.10.
--
_ivan
On Fri, Jun 06, 2003 at 01:12:42PM -0400, Jesse D. Guardiani wrote:
> Howdy list,
>
> I'm a fairly accomplished FreeBSD sys admin with
> a decent knowledge of Perl, but I've just installed
> a TON of modules I've never used before, including
> Mason, so please bear with me and push me in the
> right direction...
>
> I get the following error when I try to load apache
> with my httpd-freeside.conf:
>
> ------ begin output ------
> [12:55]jesse at cvsup:[/usr/local/etc/freeside]# /usr/local/apache/bin/httpd -f /usr/local/apache/conf/httpd-freeside.conf
> Syntax error on line 475 of /usr/local/apache/conf/httpd-freeside.conf:
> The following parameter was passed in the call to HTML::Mason::ApacheHandler::new but was not listed in the validation options: data_dir
> at /usr/local/etc/freeside/handler.pl line 38
> Compilation failed in require at /usr/local/apache/conf/httpd-freeside.conf line 474.
>
> Exit 1
> ------ end output ------
>
>
> I am using FreeBSD 4.7-RELEASE
> with Apache 1.3.27
> and mod_perl 1.27 compiled STATICALLY into apache
>
> And I am trying to get freeside-1.4.1rc3 working.
>
>
> I have the following in my httpd-freeside.conf:
>
> PerlModule HTML::Mason
> <Directory /usr/local/apache/htdocs/freeside-mason>
> <Files ~ (\.cgi)>
> AddHandler perl-script .cgi
> PerlHandler HTML::Mason
> </Files>
> <Perl>
> require "/usr/local/etc/freeside/handler.pl";
> </Perl>
> </Directory>
>
> And /usr/local/etc/freeside/handler.pl is a slightly
> modified version of htetc/handler.pl that came with
> Freeside. Here's a diff:
>
> ------ begin diff ------
> --- handler.pl Fri Jun 6 12:55:02 2003
> +++ /usr/local/src/BILLING/freeside-1.4.1rc3/htetc/handler.pl Sun May 11 18:25:15 2003
> @@ -12,8 +12,8 @@
> # Bring in ApacheHandler, necessary for mod_perl integration.
> # Uncomment the second line (and comment the first) to use
> # Apache::Request instead of CGI.pm to parse arguments.
> -#use HTML::Mason::ApacheHandler;
> - use HTML::Mason::ApacheHandler (args_method=>'mod_perl');
> +use HTML::Mason::ApacheHandler;
> +# use HTML::Mason::ApacheHandler (args_method=>'mod_perl');
>
> # Uncomment the next line if you plan to use the Mason previewer.
> #use HTML::Mason::Preview;
> ------ end diff ------
>
> Any ideas?
>
> Thanks!
>
> --
> Jesse Guardiani, Systems Administrator
> WingNET Internet Services,
> P.O. Box 2605 // Cleveland, TN 37320-2605
> 423-559-LINK (v) 423-559-5145 (f)
> http://www.wingnet.net
>
>
--
_ivan
More information about the freeside-users
mailing list