Question
I have installed Twiki and everything runs fine except ocassionally I get 500 Internal errors. My apache error log has the following:
[Wed Nov 03 20:36:27 2004] [error] 27777: ModPerl::Registry: Can't locate TWiki/UI/View.pm in @INC
(@INC
contains: . /home/httpd/vhosts/maqx.com/httpdocs/twiki/bin /data/WebGUI/lib /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl . /etc/httpd/ /etc/httpd/lib/perl) at /home/httpd/vhosts/maqx.com/httpdocs/twiki/bin/view.pl line 37.!BEGIN failed--compilation aborted at /home/httpd/vhosts/maqx.com/httpdocs/twiki/bin/view.pl line 37.!
This is my testenv file:
http://www.maqx.com/twiki/bin/testenv.pl
Apache is configured like this:
PerlHandler ModPerl::Registry
<FilesMatch "^(view|preview)$">
SetHandler perl-script
PerlHandler ModPerl::Registry::handler
Options ExecCGI
PerlSendHeader On
</FilesMatch>
ScriptAlias /twiki/bin/ "/home/httpd/vhosts/maqx.com/httpdocs/twiki/bin/"
Alias /twiki/ "/home/httpd/vhosts/maqx.com/httpdocs/twiki/"
<Directory "/home/httpd/vhosts/maqx.com/httpdocs/twiki/bin/">
Options +ExecCGI
SetHandler perl-script
AllowOverride All
Allow from all
</Directory>
<Directory "/home/httpd/vhosts/maqx.com/httpdocs/twiki/pub">
Options FollowSymLinks +Includes
AllowOverride None
Allow from all
</Directory>
<Directory "/home/httpd/vhosts/maqx.com/httpdocs/twiki/data">
deny from all
</Directory>
<Directory "/home/httpd/vhosts/maqx.com/httpdocs/twiki/templates">
deny from all
</Directory>
And I have the following in startup.pl:
#!/usr/bin/perl -wT
unshift @INC, '/home/httpd/vhosts/maqx.com/httpdocs/twiki/bin';
All of which I got from
ModPerlOnRedHat90
Any help appreciated. I've been trying to work out all the kinks in this intstall for about 5 days... I'd really love to get it up and running right.
Environment
--
MarcusVorwaller - 04 Nov 2004
Answer
It looks like the INC path should point to your
twiki/lib, not
twiki/bin. Also, did you set an absolute lib path in
twiki/bin/setlib.cfg?
--
PeterThoeny - 04 Nov 2004
Wow. Changing the path worked. It looks like I finally have a fully functional install! Thanks!
--
MarcusVorwaller - 04 Nov 2004