]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 621597: Make mod_perl.pl do the INC configuration itself, instead of
authorMax Kanat-Alexander <mkanat@bugzilla.org>
Tue, 28 Dec 2010 22:50:16 +0000 (14:50 -0800)
committerMax Kanat-Alexander <mkanat@bugzilla.org>
Tue, 28 Dec 2010 22:50:16 +0000 (14:50 -0800)
requiring it to be in httpd.conf.
r=dkl, a=mkanat

docs/en/xml/installation.xml
mod_perl.pl

index 357dedcaed63732949665f0127998e328fa79ff0..2193dfe6f28224e69f093d94260d2812115b2b2f 100644 (file)
@@ -1136,7 +1136,7 @@ max_allowed_packet=4M
                 </warning> 
                 
                 <programlisting>
-    PerlSwitches -I/var/www/html/bugzilla -I/var/www/html/bugzilla/lib -w -T
+    PerlSwitches -w -T
     PerlConfigRequire /var/www/html/bugzilla/mod_perl.pl
                 </programlisting>
             </step>
index 4a25d0c6133710fc5be5ac93e75848a1af27fa0b..f12ae93a64984220f178f8cafcf53fa4cde1fb9b 100644 (file)
@@ -19,6 +19,13 @@ package Bugzilla::ModPerl;
 
 use strict;
 
+# This sets up our libpath without having to specify it in the mod_perl
+# configuration.
+use File::Basename;
+use lib dirname(__FILE__);
+use Bugzilla::Constants ();
+use lib Bugzilla::Constants::bz_locations()->{'ext_libpath'};
+
 # If you have an Apache2::Status handler in your Apache configuration,
 # you need to load Apache2::Status *here*, so that any later-loaded modules
 # can report information to Apache2::Status.
@@ -38,7 +45,6 @@ use Template::Config ();
 Template::Config->preload();
 
 use Bugzilla ();
-use Bugzilla::Constants ();
 use Bugzilla::CGI ();
 use Bugzilla::Extension ();
 use Bugzilla::Install::Requirements ();