[TriLUG] apache/mod_perl question
William Sutton
william at trilug.org
Mon Nov 21 14:12:16 EST 2005
Follow-up...
I tried the following, which seems to follow the existing module pattern
in the conf file, and it seems to fail in a (better!?) way:
snippet:
-----
LoadModule mod_perl modules/mod_perl.so
PerlModule HTML::Mason::ApacheHandler
<Location />
SetHandler perl-script
PerlHandler HTML::Mason::ApacheHandler
</Location>
-----
configtest result:
-----
maul # /etc/init.d/apache2 configtest
* Checking Apache Configuration ...
* Apache2 has detected a syntax error in your configuration files:
Syntax error on line 1089 of /etc/apache2/httpd.conf:
Can't locate API module structure `mod_perl' in file
/usr/lib/apache2/modules/mod_perl.so:
/usr/lib/apache2/modules/mod_perl.so: undefined symbol: mod_p [ !! ]
-----
result of searching the path for the module file:
-----
maul # find /usr/lib/apache* -name "mod_perl*.*" -print
/usr/lib/apache2/modules/mod_perl.so
maul #
-----
so clearly the module is in the right place and named the right
thing....any ideas?
--
William Sutton
On Mon, 21 Nov 2005, William Sutton wrote:
> Hummm...
>
> I now have apache2 and its version of mod_perl installed (had to update
> /etc/portage/package.keywords with the following):
>
> www-apache/mod_perl ~x86
> perl-core/CGI ~x86
>
> unemerged existing apache, apache2, Apache-Test, mod_perl, emerged new
> apache & mod_perl.
>
> Still not quite functioning....current setup:
>
> In httpd.conf, after the default IfDefine lines for /server-status and
> /server-info, I added
>
> # mod perl stuff
> PerlModule HTML::Mason::ApacheHandler
> <Location />
> SetHandler perl-script
> PerlHandler HTML::Mason::ApacheHandler
> </Location>
>
> configtest returns:
>
> maul # /etc/init.d/apache2 configtest
> * Checking Apache Configuration ...
> * Apache2 has detected a syntax error in your configuration files:
> Syntax error on line 1090 of /etc/apache2/httpd.conf:
> Invalid command 'PerlModule', perhaps mis-spelled or defined by a module
> not included in the server configuration
> [ !! ]
> maul #
>
> I added
>
> AddModule mod_perl.c
>
> (and when that didn't work, for .so) to the beginning of the config block.
> Apache seems to think that AddModule isn't valid syntax.
>
> so, back to where I was I guess....any suggestions?
>
>
>
More information about the TriLUG
mailing list