Gentoo Archives: gentoo-server

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

Replies

Subject Author
Re: [gentoo-server] Apache2 and mod_perl Sri Gupta <sri@×××××.com>
Re: [gentoo-server] Apache2 and mod_perl Kashani <kashani-list@××××××××.net>