Username: Password:

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

喜欢本文,那就收藏到:

    Del.icio.us Google书签 Digg Live Bookmark Technorati Furl Yahoo书签 Facebook 百度搜藏 新浪ViVi 365Key网摘 天极网摘 和讯网摘 博拉网 POCO网摘 添加到饭否 QQ书签 Digbuzz我挖网
相关评论  我也要评论
还没有关于此文章的相关评论!
  • 昵称: (为空则显示guest)
  • 评论分数: ★ ★ ★★★ ★★★★ ★★★★★
  • 评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
  • 导航
    赞助商
    文章类别
    订阅