Tags:
create new tag
, view all tags

Question

I turned on LDAP-User-authentication with LdapContrib. Since that moment, my TWiki got really slow!

So I though about enabling mod_perl to speed it up, then I think LDAP-results can also be cached.

I followed both instructions these instructions:

Codev.ModPerlUnix: it works, but I can't feel any speed improvements! How can I verify if mod_perl is really used? What does this mean: "Make sure you have a twiki/bin/LocalLib.cfg file with $twikiLibPath correctly set to the absolute path of the twiki/lib directory."

TWiki.ApacheConfigGenerator: when I activate the provided configurations, I get this apache-error-log:%br% [Thu Aug 24 14:40:59 2006] [error] 8154: ModPerl::Registry: Can't locate TWiki/UI/View.pm in @INC (@INC contains: . /lib /opt/twiki/bin /srv/www/perl-lib /usr/lib/perl5/5.8.3/i586-linux-thread-multi /usr/lib/perl5/5.8.3 /usr/lib/perl5/site_perl/5.8.3/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.3/i586-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl /srv/www/ /srv/www/lib/perl) at /opt/twiki/bin/view line 31.\nBEGIN failed--compilation aborted at /opt/twiki/bin/view line 31.\n

Environment

TWiki version: TWikiRelease04x00x04
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: SuSE 9.3
Web server: Apache2 with mod_perl
Perl version:  
Client OS: SuSE 9.3
Web Browser: Firefox 1.5
Categories: Performance

-- AlexanderScholler - 24 Aug 2006

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

As documented within the comments of lib/LocalSite.cfg, I had to configure the absolute path to mit twiki/lib within ./bin/LocalLib.cfg

After that, the configuration provided by ApacheConfigGenerator works great!

-- AlexanderScholler - 01 Sep 2006

Yes, I can also confirm that the trick was in lib/LocalSite.cfg. Well, that and really rigorously going through my httpd.conf settings. I found a minor error here and a minor error there, and that tripped me up. The other thing to watch out for was how the regex for the /bin scripts is done. For instance, i'd get a 500 error if I had the regex written just slightly wrong. As for the "Can't late TWiki/UI/View.pm" I have one more thought for you. Being a Mac, and (making the mistake of also) using macports, I inadvertently created 2 perl installs. The trick: TWiki (as the www user) was utilizing the perl install in /usr/bin instead of /opt/local/bin. This caused all sorts of prolbems like you were seeing above. In the end, I made sure to /usr/bin -e MCPAN for all the perl modules to make sure I updated the correct perl installation. For all those following this link trying to get mod_perl to work -- make sure you first have the correct perl installation up-to-date, then slowly turn on bits of mod_perl.... to make sure your apache server can take it..... then turn on mod_perl for one certain script using a speciifc regex in the twiki_httpd.conf file. Going slow was the right thing to do, for I totally botched it when I tried to do it one fell swoop.

-- RedByer - 10 May 2008

 
Change status to:
Topic revision: r3 - 2008-05-10 - RedByer
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.