[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: HTML::Mason (a.k.a. p5-HTML-Mason-1.19)
On 31 May 2004, at 22:48, Ben Goren wrote:
> Yesterday I upgraded (backup, wipe, install, restore data) a Web
> server with HTML::Mason from OpenBSD 3.2 to 3.5-STABLE. No matter
> what, I can't get Mason to run on 3.5. It installs without problem
> (using the package of version 1.19 on ftp.openbsd.org and related
> dependencies, including mod_perl 1.27), but it simply won't run.
>
> Even with Mason installed, Apache works fine with the stock httpd.conf
> with mod_perl enabled. But, as soon as I add a line such as:
>
> PerlModule HTML::Mason::ApacheHandler
>
Are you running httpd chroot'ed?
If not, I just installed a stock i386 -current box yesterday with
HTML::Mason, and used these lines in my httpd.conf:
PerlModule HTML::Mason::ApacheHandler
PerlModule Apache::DBI
<LocationMatch "(\.html|\.txt|\.pl)$">
SetHandler perl-script
PerlHandler HTML::Mason::ApacheHandler
PerlSetVar MasonAllowGlobals $dbh
</LocationMatch>
<LocationMatch "(\.m(html|txt|pl)|dhandler|autohandler)$">
SetHandler perl-script
PerlInitHandler Apache::Constants::NOT_FOUND
</LocationMatch>
Which works just fine over here. Don't forget to add '-u' to
httpd_flags in /etc/rc.conf though!
-anil