[TriLUG] apache/mod_perl question

William Sutton william at trilug.org
Tue Nov 22 09:51:19 EST 2005


further follow, more FYI and for google, since I hate to see people post 
problems without posting a resolution :)

I got to the point where I decided to do the worst case action.  I emerge 
--unmerge'd apache, apache2, and mod_perl.  I then deleted (rm -rf'd) all 
files on disk pertaining to /apache(2)?/ except those in /usr/share, 
portage, and anything marked 'db'.   I put this in my 
/etc/portage/package.keywords file:

www-apache/mod_perl ~x86
perl-core/CGI ~x86

and I added 'apache2' to the USE flags in my /etc/make.conf.  I re-emerged 
apache2 and mod_perl and added the following line to my 
/etc/apache2/httpd.conf file in the CGI Modules section:

LoadModule perl_module                   modules/mod_perl.so

apache configtest work, and apache starts now, so it looks like I'm in 
business.

-- 
William Sutton


On Mon, 21 Nov 2005, 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?
> 
> 



More information about the TriLUG mailing list