LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-19-2007, 05:02 PM   #1
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 227Reputation: 227Reputation: 227
mod_perl with Slack11 / php4.4 /Apache 1.3.37/mysql 5


I have been trying to get mod_perl working with a Slackware 11, Apache 1.3.37, php 4.4, mysql 5.0.24 setup. I have the Apache/Mysql/Php setup all working OK as tested with localhost/phpinfo() and have download the source to mod_perl 1.29, loaded the Apache source from Slack disks and ran the makefile.pl, make, make install as per instructions on the web. The make complains about libww-perl not being present but states that this is not mandatory. I seem to be getting nowhere with this and have been searching for some time. Anyone any experience of getting mod_perl working with Slackware ? Thanks in advance..
 
Old 01-22-2007, 10:16 AM   #2
msantinho
Member
 
Registered: Oct 2005
Location: Lisbon
Distribution: Slackware
Posts: 51

Rep: Reputation: 15
This is waht I do to get mod_perl working under Apache 1.3.* on Slackware 11.0:

1. You need these modules from CPAN:
MIME::Base64
URI
HTML::Tagset
HTML::Parser
Digest-MD5

2. Download the source from http://perl.apache.org/download/index.html and extract it as root;

3. Go to the new folder and type:
# perl Makefile.PL USE_APXS=1 WITH_APXS=/usr/bin/apxs EVERYTHING=1
# cp apaci/libperl.so /usr/libexec/apache/libperl.so
# chmod 755 /usr/libexec/apache/libperl.so

4. Verify if /etc/apache/http.conf has this line:
AddModule mod_perl.c

5. Stop & start Apache
# apachectl stop
# apachect start
 
Old 01-22-2007, 07:12 PM   #3
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Original Poster
Rep: Reputation: 227Reputation: 227Reputation: 227
Thanks for the help. Finally got round to building all the modules you suggested and ended up with a libperl.so. I then followed the rest of your instructions but when I started httpd after making the change to /etc/apache/ httpd.conf (i.e. adding Addmodule mod_perl) I got the following error:

Code:
Cannot add module via name 'mod_perl.c': not in list of loaded modules
Do I need a loadmodule statement first and if so what is the correct syntax ?
 
Old 01-23-2007, 04:38 AM   #4
msantinho
Member
 
Registered: Oct 2005
Location: Lisbon
Distribution: Slackware
Posts: 51

Rep: Reputation: 15
Sorry, I forgot to mention this line on httpd.conf (__before__ AddModule mod_perl.c):
Something like:

Code:
(load modules...)
LoadModule perl_module        libexec/apache/libperl.so

(...)

AddModule mod_php4.c
AddModule mod_perl.c
 
Old 01-23-2007, 12:30 PM   #5
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Original Poster
Rep: Reputation: 227Reputation: 227Reputation: 227
Thats fixed it - all is well - thank you very much for your help
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Apache mod_perl raypen Slackware 8 10-09-2006 11:03 AM
MySQL Socket problem from Apache 1.3 and Php4 stardotstar Linux - Software 10 09-27-2004 09:14 PM
php4 mysql, installation, php-pages with mysql info stay empty dnla Linux - Software 2 03-14-2004 03:54 PM
Apache and mod_perl TheCreator Linux - Software 0 12-21-2003 02:18 PM
Apache 2.0.45 and mod_perl arkopolo Linux - Software 0 07-03-2003 03:06 PM


All times are GMT -5. The time now is 02:44 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration