Gentoo Archives: gentoo-server

From: Sri Gupta <sri@×××××.com>
To: gentoo-server@l.g.o
Subject: Re: [gentoo-server] Apache2 and mod_perl
Date: Mon, 28 Jun 2004 01:58:50
Message-Id: 20040628015653.GC24826@tripadelic.com
In Reply to: [gentoo-server] Apache2 and mod_perl by Collin Starkweather
1 Hmm.. Well, try apache2ctl -D PERL configtest.
2
3 If that works, add "-D PERL" to /etc/conf.d/apache2, and use the script
4 /etc/init.d/apache2 to launch the daemon.. apache2ctl is nice, but
5 rc-scripts are "the gentoo way".
6
7 -Sri
8 --
9 Sri Gupta
10 http://www.iPlur.com/
11
12 On Sun, Jun 27, 2004 at 08:46:26PM -0500, Collin Starkweather wrote:
13 > I decided recently to make the change to Apache2. I normally build
14 > Apache and mod_perl by hand, but decided to let emerge do the heavy
15 > lifting this time to see how it went.
16 >
17 > After emerging Apache 2.0.49-r1 and mod_perl 1.99.11, I get the
18 > following when trying to fire it up:
19 >
20 > www root # apache2ctl configtest
21 > Syntax error on line 66 of /usr/lib/apache2/conf/vhosts/vhosts.conf:
22 > Invalid command 'PerlRequire', perhaps mis-spelled or defined by a \
23 > module not included in the server configuration
24 > www root #
25 >
26 > I have checked the perl.apache.org migration documentation and there is
27 > nothing that indicates PerlRequire has been deprecated, and, in fact,
28 > all of the mod_perl directives trigger the error, even ones I know to be
29 > valid such as PerlInitHandler. The offending virtual host configuration
30 > (edited for brevity), which is for an Apache::Pagekit based site, is
31 >
32 > <VirtualHost *:8088>
33 > ServerAdmin collin.starkweather@××××××××××××××××××.com
34 > ... blah blah blah ...
35 > DocumentRoot /.../www.collinstarkweather.com/pagekit/View/Default
36 > PerlRequire /.../www.collinstarkweather.com/scripts/startup.pl
37 > SetHandler perl-script
38 > PerlSetVar PKIT_ROOT /.../www.collinstarkweather.com/pagekit
39 > PerlSetVar PKIT_SERVER staging
40 > PerlHandler +Apache::PageKit
41 > <Perl>
42 > use Apache::PageKit;
43 > Apache::PageKit->startup("/.../pagekit","staging");
44 > </Perl>
45 > PerlInitHandler +Apache::Reload
46 > </VirtualHost>
47 >
48 > I feel like I'm missing something simple but fundamental here. Any
49 > insights would be greatly appreciated.
50 >
51 > Thanks,
52 >
53 > -Collin
54 >