Difference between revision 5 and current revision
Summary: A little extra comment; after some testing, it seems to run but continually segfaults: [Tue Oct 3 11:17:26 2006] [notice] child pid 3740 exit . . .
No diff available.Note that the latest version of Apache that comes with Slackware 10.2 is 1.3.37 (published as a security patch) and that using earlier versions opens you up to known security risks. See:
http://www.slackware.com/security/viewer.php?l=slackware-security&y=2006&m=slackware-security.610131
It is also not necessary to recompile or reinstall Apache in order to compile mod_perl. All that's needed is having the virginal Apache 1.3.37 source code available in some directory.
mod_perl is also available in CPAN. Combined with the 'cpan2tgz' utility available from http://software.jaos.org/ it is trivial to make a Slackware package out of mod_perl: simply type "cpan2tgz mod_perl" as root, and follow directions. When it asks you whether to build httpd, you can say no.
-- McDutchie 2006-10-03 19:37 UTC
Thanks a lot. Instead of the whole shebang in the original entry, the idiot's guide to installing mod_perl under Slackware (10.2) then becomes:
# wget http://software.jaos.org/slackpacks/10.2/cpan2tgz-0.6-noarch-1.tgz # installpkg cpan2tgz-0.6-noarch-1.tgz # cpan2tgz mod_perl
Accept the defaults, but answer 'no' when it asks to build httpd.
Add the following lines to /etc/apache/httpd.conf, at the end of the LoadModule list:
LoadModule perl_module libexec/apache/libperl.so
At the end of the AddModule list, add:
AddModule mod_perl.c
Restart apache:
# /etc/rc.d/rc.httpd restart
Check Apache log file:
# tail /var/log/apache/error_log
It should show something like (emphasis mine):
[Tue Oct 3 10:38:52 2006] [notice] SIGHUP received. Attempting to restart [Tue Oct 3 10:38:54 2006] [notice] Apache/1.3.33 (Unix) PHP/4.4.0 mod_perl/1.29 configured -- resuming normal operations [Tue Oct 3 10:38:54 2006] [notice] Accept mutex: sysvsem (Default: sysvsem)
-- Bvankuik 2006-10-04 08:42 UTC
A little extra comment; after some testing, it seems to run but continually segfaults:
[Tue Oct 3 11:17:26 2006] [notice] child pid 3740 exit signal Segmentation fault (11)
I'm constrained by time but if anyone has an idea, please make a comment :-/
-- bvankuik 2006-10-04 09:19 UTC