[otrs-cvs] otrs/scripts apache2-perl-startup.pl,1.57,1.58
"CVS commits notifications of OTRS.org" <[email protected]>
| Newsgroups | gmane.comp.otrs.cvs |
|---|---|
| Message-ID | <[email protected]> |
Comments:
Update of /home/cvs/otrs/scripts
In directory lancelot:/tmp/cvs-serv19125/scripts
Modified Files:
apache2-perl-startup.pl
Log Message:
Fixed bug#8533 - Apache will not start if you use mod_perl on Fedora 16 or 17.
Author: mb
Index: apache2-perl-startup.pl
===================================================================
RCS file: /home/cvs/otrs/scripts/apache2-perl-startup.pl,v
retrieving revision 1.57
retrieving revision 1.58
diff -2 -u -d -r1.57 -r1.58
--- apache2-perl-startup.pl 20 Nov 2012 16:04:47 -0000 1.57
+++ apache2-perl-startup.pl 13 Dec 2012 14:23:11 -0000 1.58
@@ -28,8 +28,15 @@
$ENV{MOD_PERL} =~ /mod_perl/ or die "MOD_PERL not used!";
-# switch to unload_package_xs, the PP version is broken in Perl 5.10.1.
-# see http://rt.perl.org/rt3//Public/Bug/Display.html?id=72866
BEGIN {
+ # switch to unload_package_xs, the PP version is broken in Perl 5.10.1.
+ # see http://rt.perl.org/rt3//Public/Bug/Display.html?id=72866
+
$ModPerl::Util::DEFAULT_UNLOAD_METHOD = 'unload_package_xs';
+
+ # set $0 to index.pl because this is broken in mod_perl context;
+ # apart from that, on Fedora, $0 is not a path which would break OTRS.
+ # see bug # 8533
+
+ $0 = '/opt/otrs/bin/cgi-bin/index.pl';
}
---------------------------------------------------------------------
OTRS mailing list: cvs-log - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/cvs-log
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log