[NBLUG/talk] perl problems

Sean seanvanco at gmail.com
Wed Jun 7 12:57:26 PDT 2006

I am attempting to install a program that utilizes perl to add
functionality to my Apache2 web server. I have been working with
someone who has narrowed the problem down to one file,
75_mod_perl.conf. The program we are working with is called Metadot.

We have PHP and Perl installed and running on the system, but it
appears that Perl cannot locate the perl scipts for this program. We
have attempted to tell it where to look, but it appears to have no
effect. Posted below is the /var/log/apache2/error_log, and second the

We were hoping that someone might be able to tell us what we are doing
wrong. Thank you ahead of time for your assistance.


[Wed Jun 07 12:39:58 2006] [error] Can't locate Metadot.pm in @INC
(@INC contains: /home/httpd/perl /etc/perl
/usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl
/usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl
/usr/lib/perl5/5.8.8/i686-linux /usr/lib/perl5/5.8.8
/usr/local/lib/site_perl . /usr/lib/apache2) at
/var/www/localhost/htdocs/metadot/metadot/index.pl line 37.\nBEGIN
failed--compilation aborted at
/var/www/localhost/htdocs/metadot/metadot/index.pl line 37.\n


<IfDefine PERL>
  <IfModule !mod_perl.c>
    LoadModule perl_module    modules/mod_perl.so
    SetEnv PERL5LIB

<IfModule mod_perl.c>
	PerlRequire "/etc/apache2/modules.d/apache2-mod_perl-startup.pl"

	Alias /perl/ /var/www/localhost/perl/

	<IfModule mod_access.c>
	<Location /perl-status>
        	SetHandler perl-script
		PerlResponseHandler Apache2::Status
        	Order deny,allow
        	Deny from all
        	Allow from
		Allow from

    PerlModule ModPerl::Registry
    <Location "*.pl">
#    <Location  "^/perl/*.pl>
        SetHandler perl-script
        PerlResponseHandler ModPerl::Registry
        Options -Indexes ExecCGI
        PerlSendHeader On

<Location ~ "\.(pl|cgi)$">
  SetHandler perl-script
  PerlResponseHandler ModPerl::PerlRun
  Options -Indexes ExecCGI
  PerlSendHeader On


More information about the talk mailing list