Date: Mon, 2 Sep 2002 08:59:39 +0200 (MET DST) From: Mario Pranjic <mario.pranjic@irb.hr> To: <freebsd-stable@FreeBSD.ORG> Subject: apache+perl+mason problem Message-ID: <Pine.GSO.4.32.0209020854320.23856-100000@nippur.irb.hr>
next in thread | raw e-mail | index | archive | help
Hi!
I've installed apache+mod_ssl from ports.
I've installed mod_perl and mod_php for apache.
I intend to use Mason (p5-HTML-Mason-1.12.1).
I've installed Mason from ports. pkg_tree shows:
p5-HTML-Mason-1.13
|\__ p5-libapreq-1.0
|\__ p5-Test-Simple-0.47
|\__ p5-Scalar-List-Utils-1.0701
|\__ p5-Params-Validate-0.24
|\__ p5-File-Spec-0.82
|\__ p5-Carp-Assert-0.17
|\__ p5-Devel-StackTrace-1.00
| \__ p5-Test-Simple-0.47
|\__ p5-Class-Fields-0.14
| \__ p5-Carp-Assert-0.17
|\__ p5-Class-Data-Inheritable-0.02
| |\__ p5-Carp-Assert-0.17
| \__ p5-Class-Fields-0.14
| \__ p5-Carp-Assert-0.17
|\__ p5-Class-Container-0.07
| |\__ p5-Scalar-List-Utils-1.0701
| \__ p5-Params-Validate-0.24
\__ p5-Exception-Class-1.05
|\__ p5-Test-Simple-0.47
|\__ p5-Devel-StackTrace-1.00
| \__ p5-Test-Simple-0.47
|\__ p5-Carp-Assert-0.17
|\__ p5-Class-Fields-0.14
| \__ p5-Carp-Assert-0.17
\__ p5-Class-Data-Inheritable-0.02
|\__ p5-Carp-Assert-0.17
\__ p5-Class-Fields-0.14
\__ p5-Carp-Assert-0.17
Now, in httpd.conf I wrote:
<IfModule mod_perl.c>
# --------------
# -- mod_perl --
# --------------
Alias /perl/ /services/perl/
<Location /perl>
SetHandler perl-script
PerlHandler Apache::Registry
Options +ExecCGI
PerlSendHeader on
</Location>
# -----------------
# -- HTML::Mason --
# -----------------
PerlSetVar MasonCompRoot /services/bib
PerlSetVar MasonDataDir /services/mason
## PerlModule Apache::DBI
PerlModule HTML::Mason::ApacheHandler
<Directory /services/bib>
<FilesMatch "(\.htm|\.html|\.txt|\.cgi|^[^\.]+)$">
SetHandler perl-script
PerlHandler HTML::Mason::ApacheHandler
</FilesMatch>
</Directory>
</IfModule>
But, when I try to start apache, I get the following:
Syntax error on line 1095 of /usr/local/etc/apache/httpd.conf:
Can't locate HTML/Mason/ApacheHandler.pm in @INC (@INC contains:
/usr/local/lib/site_perl/5.00503/i386-freebsd
/usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd
/usr/local/lib/perl5/site_perl/5.005 . /usr/local/ /usr/local/lib/perl) at
(eval 4) line 3.
Can anyone give me a hint what I did wrong?
Thanks a lot!
Mario Pranjic, dipl.ing.
sistem administrator
Knjiznica, Institut Rudjer Boskovic
-------------------------------------
e-mail: mario.pranjic@irb.hr
ICQ: 72059629
tel: +385 1 45 60 954 (interni: 1293)
-------------------------------------
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.32.0209020854320.23856-100000>
