Tags:
create new tag
view all tags

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

TWiki version: TWikiBetaRelease2004x10x24
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: RedHat 9
Web server: Apache 2.0.40
Perl version: 5.8.0
Client OS: OS X
Web Browser: Firefox
Categories: Installation, Fatal error

-- 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

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2004-11-04 - MarcusVorwaller
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.