Koozali.org: home of the SME Server

mod_perl for sme 5.1.2

Ivan

mod_perl for sme 5.1.2
« on: June 23, 2002, 03:02:38 AM »
I need to install mod_perl for Apache on sme 5.1.2 with service pack. Is there any docs anywhere on this subject? How hard is it to get it running?
I did try to install it with rpms from rpmfind.net - after 4 hours I gave up.

Many thanks,
Ivan

Jon Blakely

Re: mod_perl for sme 5.1.2
« Reply #1 on: June 23, 2002, 05:30:00 AM »
Ivan,

mod_perl is already installed

# rpm -q mod_perl

# mod_perl-1.24_01-2

Jon

Ivan

Re: mod_perl for sme 5.1.2
« Reply #2 on: June 23, 2002, 09:52:20 AM »
I've upgraded it to 1.24_1.3, but apache dosn't process any pl pages. How do I get apache to recognize and process pl pages? When viewed through the internet browser I only see actual code, not the page that it should generate? My goal is to install WebGUI cms.

Thank you very much for your reply,
Ivan

Jon Blakely

Re: mod_perl for sme 5.1.2
« Reply #3 on: June 23, 2002, 04:25:13 PM »
Ivan,

Have you installed all the other modules required as per the WebGUI install section and have you set up httpd.conf to recognise perl script i.e SetHandler perl-script.

Jon

Ivan

Re: mod_perl for sme 5.1.2
« Reply #4 on: June 25, 2002, 12:47:52 AM »
All of the modules intalled and I belived that I've added support for perl. It looks like I'll have to pay a visit to apache.org :). do you have any web links related to perl configuration under apache?
In your opinion, do you think that WebGUI should be running from CGI dir?

Kind regards,
Ivan

Mark S

Re: mod_perl for sme 5.1.2
« Reply #5 on: July 03, 2002, 09:38:55 AM »
mod_perl is not installed by default.  My guess is you have to modify the template file (see http://www.e-smith.org/docs/papers/templates.html)

cp -rp /etc/e-smith/templates/etc/httpd/conf/httpd.conf/30AddModule60 /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf

cd /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf

pico 30AddModule60

uncomment
#AddModule mod_perl.c

Follow the same routine for template 20Loadmodule80
uncomment
#LoadModule perl_module

and expand the template.

/sbin/e-smith/expand-template /etc/e-smith/templates/etc/httpd/conf/httpd.conf

and run
/sbin/e-smith/signal-event console-save

Hope that works. :)

Dan Brown

Re: mod_perl for sme 5.1.2
« Reply #6 on: July 03, 2002, 05:54:26 PM »
Not so; mod_perl is installed by default, and is active in the default httpd.conf (or at least it is in mine, and I haven't made any changes that I know of that would affect it).  If it isn't active, do

/sbin/e-smith/config setprop modPerl status enabled
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf