I don't have access to my Gentoo box right now, but here is the syntax from my FC3 config file:
LoadModule perl_module modules/mod_perl.so Also, here is something from the Gentoo Wiki which might help: http://gentoo-wiki.com/Apache_Modules_mod_perl Owen On Mon, 2005-11-21 at 14:12 -0500, William Sutton wrote: > 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? > > > > > > -- TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug TriLUG Organizational FAQ : http://trilug.org/faq/ TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
