[Lxr-commits] CVS: lxr INSTALL,1.22,1.23
Brought to you by:
ajlittoz
From: Jan-Benedict G. <jb...@us...> - 2006-12-20 19:53:52
|
Update of /cvsroot/lxr/lxr In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv1720 Modified Files: INSTALL Log Message: Update installation instructions wrt. Apache2. Index: INSTALL =================================================================== RCS file: /cvsroot/lxr/lxr/INSTALL,v retrieving revision 1.22 retrieving revision 1.23 diff -u -d -r1.22 -r1.23 --- INSTALL 6 Jun 2006 21:33:57 -0000 1.22 +++ INSTALL 20 Dec 2006 19:53:49 -0000 1.23 @@ -74,11 +74,15 @@ Now you have to put the perl modules that LXR uses into a directory on your system that will be searched by mod_perl when the LXR scripts are -executed. Execute: +executed. Being an Apache 1.x user, execute: cp /usr/local/lxr/Local.pm /usr/lib/perl5/site_perl/ cp -r /usr/local/lxr/lib/LXR /usr/lib/perl5/site_perl +For Apache2, there's a clever variant to not clobber your system's +Perl installation with foreign modules documented below in the Apache2 +section. + Now you should copy the template files for LXR to your installation mv /usr/local/lxr/templates/* /usr/local/lxr/ @@ -90,7 +94,7 @@ 'glimpsebin' => '/path/to/your/glimpse/executable' 'glimpseindex' => '/path/to/your/glimpseindex/executable' - + If you have swish-e installed, you should set 'swishbin' => '/path/to/your/swishe-e/executable' @@ -153,6 +157,24 @@ 'sourceroot' => 'cvs:/path/to/cvs/repository/lxr' 'sourcerootname' => 'A Friendly Name For Your Repository' +Apache2, modperl2 and LXR +------------------------- +Edit the .htaccess file and change "Apache::Registry" to +"ModPerl::Registry". You also need to let modperl2 know about +where to find LXR perl modules. You can add a line like this +to your Apache2 config: + + PerlRequire /usr/local/lxr/require.pl + +with about this contents: +- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +#!/usr/bin/env perl -w +@INC=(@INC, "/usr/local/lxr", + "/usr/local/lxr/lib", + "/usr/local/lxr/lib/Files"); +1; +- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + Using Swish-e with LXR ---------------------- Create a directory for the swish index files to go in, and put the |