mod_perl2 and the TWiki debian package (4.0.5-9.1)
来源:
ChinaUnix博客 作者:
ChinaUnix博客 发布时间:2008-01-01 20:02:00


mod_perl2 and the TWiki debian package (4.0.5-9.1)
To configure the TWiki debian package to use mod_perl2 (on apache2) there are 3 steps:
(presuming you have installed apache2, libapache2-mod-perl2, twiki from Etch)
edit /etc/twiki/apache.conf and add the following to the top #mod_perl for apache2
PerlRequire /var/lib/twiki/tools/mod_perl_startup.pl
# Turn on taint checking
PerlSwitches -T
edit /etc/twiki/apache.conf and add the following inside the section #mod_perl
# This matches all lower-case file names, except
# those starting with "configure"
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlSendHeader On
PerlOptions +ParseHeaders
and create /var/lib/twiki/tools/mod_perl_startup.pl
$ENV{MOD_PERL} =~ /mod_perl/ or die "mod_perl_startup called, but mod_perl not used!";
use lib qw( /usr/lib/cgi-bin/twiki );
require ’setlib.cfg’;
1;
then restart apache2 (/etc/init.d/apache2 restart)
next time I do an update to the deb, I will try to work out how to add support for mod_perl under both apache and apache2.
see:
http://twiki.org/cgi-bin/view/Codev/ModPerlUnix
本文来自ChinaUnix博客,假如查看原文请点:http://blog.chinaunix.net/u/6088/showart_460512.html
|
还没有关于此文章的相关评论!