[rt-users] httpd.conf problem.

Ron Alexander Ralexander at musiciansfriend.com
Mon Sep 23 19:48:50 EDT 2002


i have httpd.conf configured as shown in
http://fsck.com/rtfm/article.html?id=2#49 to run rt with other content.
with this configuration, apache will not start. running 'apachectl
start' will cause 'httpd started' to be echoed, but no job is actually
started.

if i remove the line 'PerlRequire /usr/local/rt2/bin/webmux.pl' and run
'apachectl start' httpd actually starts and I can view all content
except the rt material. the error going to log is:

[Mon Sep 23 16:54:47 2002] [error] Can't locate RT/Mason.pm in @INC
(@INC contains: /usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1
/usr/lib/perl5/site_perl/5.6.1/i386-linux /usr/lib/perl5/site_perl/5.6.1
/usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.6.1/i386-linux
/usr/lib/perl5/vendor_perl/5.6.1 /usr/lib/perl5/vendor_perl .
/etc/httpd/ /etc/httpd/lib/perl) at (eval 4) line 3.
 
[Mon Sep 23 16:54:47 2002] [error] Undefined subroutine
&RT::Mason::handler called.

:so if RT::Mason existed i could include it in one of the lib
directories above or add it to my @INC. but this doesn't seem to be the
case as far as i can tell.

This is what the httpd.conf is:
<IfModule mod_perl.c>
    Alias /perl /var/www/perl
    <Location /perl>
        SetHandler perl-script
        PerlHandler Apache::Registry
        Options +ExecCGI
    </Location>
    Alias /rt2 /var/www/html/rt2/WebRT/html
	#PerlRequire /var/www/html/rt2/bin/webmux.pl 
    <Location /rt2>
        SetHandler perl-script
        PerlHandler RT::Mason
    </Location>
 <Directory "/var/www/html">
          <FilesMatch "(\.html)$">
          SetHandler perl-script
          PerlHandler HTML::Mason::ApacheHandler
          </FilesMatch>
        </Directory>
</IfModule>



More information about the rt-users mailing list