LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-05-2011, 01:09 PM   #1
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
Slackware 64-bit 13.37, Apache 2.l2 and mod_perl


I'm trying to install Koha, a management system for libraries (as in books and stuff, not system libraries). It requires mod_perl and I'm having a little trouble trying to figure out how to add mod_perl.

I did use the CPAN/Perl installer which is, I think, pretty much limited to Bugzilla but the stuff appears to be where it ought; i.e.,
Code:
/var/www/htdocs/bugzilla/mod_perl.pl
/usr/include/httpd/mod_perl.h
/usr/lib64/httpd/modules/mod_perl.so
/root/.cpan/build/CPAN-1.9600-4zJFot/distroprefs/GOZER.mod_perl.yml
/root/.cpan/build/SOAP-Lite-0.712-g6uW4Y/t/13-mod_perl.t
Trying to do it the simple way, I tried adding
Code:
LoadModule mod_perl lib64/httpd/modules/mod_perl.so
and that sure weren't it:
Code:
/etc/httpd/rc.d/rc.httpd start
httpd: Syntax error on line 122 of /etc/httpd/httpd.conf: Can't locate API module structure `mod_perl' in file /usr/lib64/httpd/modules/mod_perl.so: /usr/lib64/httpd/modules/mod_perl.so: undefined symbol: mod_perl
Oops.

So, do I have to recompile httpd with mod_perl included, do I have the syntax all wrong, do I simply throw my hands up in horror and abandon all hope?

Is there a better way?

Last edited by tronayne; 07-06-2011 at 10:14 AM. Reason: Slippery finger copy-paste
 
Old 07-06-2011, 01:51 AM   #2
Mike_M
Member
 
Registered: Mar 2011
Location: California
Distribution: Slackware
Posts: 116

Rep: Reputation: 53
Quote:
Originally Posted by tronayne View Post
I'm trying to install Koha, a management system for libraries (as in books and stuff, not system libraries). It requires mod_perl and I'm having a little trouble trying to figure out how to add mod_perl.

I did use the CPAN/Perl installer which is, I think, pretty much limited to Bugzilla but the stuff appears to be where it ought; i.e.,
Code:
/var/www/htdocs/bugzilla/mod_perl.pl
/usr/include/httpd/mod_perl.h
/usr/lib64/httpd/modules/mod_perl.so
/root/.cpan/build/CPAN-1.9600-4zJFot/distroprefs/GOZER.mod_perl.yml
/root/.cpan/build/SOAP-Lite-0.712-g6uW4Y/t/13-mod_perl.t
Trying to do it the simple way, I tried adding
Code:
LoadModule mod_perl lib64/httpd/modules/mod_asis.so
and that sure weren't it:
Code:
/etc/httpd/rc.d/rc.httpd start
httpd: Syntax error on line 122 of /etc/httpd/httpd.conf: Can't locate API module structure `mod_perl' in file /usr/lib64/httpd/modules/mod_perl.so: /usr/lib64/httpd/modules/mod_perl.so: undefined symbol: mod_perl
Oops.

So, do I have to recompile httpd with mod_perl included, do I have the syntax all wrong, do I simply throw my hands up in horror and abandon all hope?

Is there a better way?
As long as your httpd is built with DSO support (dynamic modules) you do not need to (re-)build httpd with mod_perl support. Build mod_perl as a DSO and load it from httpd.conf as follows:

Code:
LoadModule perl_module modules/mod_perl.so
Restart httpd and you should be in business. Look at the end of the main error_log file for httpd and you should see a [notice] line that includes the following information (as well as other functionality supported by your daemon) after a (re)start: "mod_perl/2.0.5 ... -- resuming normal operations"

I've never installed mod_perl through CPAN. I've always built from source available from the project page, perl.apache.org. There should also be instructions on how to build it at that URL (it's quite simple).

Your mention of mod_asis and Bugzilla are puzzling. What do they have to do with mod_perl?
 
1 members found this post helpful.
Old 07-06-2011, 10:31 AM   #3
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Original Poster
Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
Quote:
Your mention of mod_asis and Bugzilla are puzzling. What do they have to do with mod_perl?
Well, mod_asis has nothing to do with anything except for some dofus not doing copy-paste and forgetting to edit the thing, sigh.

Bugzila supports mod_perl (if you want it, I don't, don't use Perl for anything other than when I'm forced to by some application) and has a convenient installer that does all the fiddling and faddling to build it and get it installed:
Code:
perl install-module.pl mod_perl
and wait awhile. Handy if you don't want to become a Perl expert (and, for me, annoying that Bugzilla relies on Perl instead of, say, the LAMP model). No biggie one way or the other.

Anyway, thanks for the input, I added
Code:
#
# Add mod_perl
#
LoadModule perl_module lib64/httpd/modules/mod_perl.so
to /etc/httpd/httpd.conf and things appear to be working; never occurred that the correct syntax was "perl_module" instead of "mod_perl" in the LoadModule directive (even with a bunch of searching in the Apache manual and not finding).

All is well that ends.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackbuild for Apache with Slackware 13 (32-bit) - is it just me or did they forget ? karthikrr Slackware 7 10-11-2009 10:21 AM
Apache mod_perl raypen Slackware 8 10-09-2006 10:03 AM
Apache and mod_perl TheCreator Linux - Software 0 12-21-2003 01:18 PM
Apache 2.0.45 and mod_perl arkopolo Linux - Software 0 07-03-2003 02:06 PM
mod_perl and apache dexter_modem Linux - Software 0 03-19-2003 12:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration