Forum Moderators: phranque

Message Too Old, No Replies

mod_perl installation

installing mod_perl problems

         

john127

8:46 am on May 19, 2006 (gmt 0)

10+ Year Member



I had mod_perl installed (along with mod_geoip) as i wanted to run my cgi script through it to speed it up and use just one persistent connection instead of one for every user.
I added the following to my httpd.conf file and restarted apache:

LoadModule perl_module libexec/libperl.so
LoadModule geoip_module libexec/mod_geoip.so

AddModule mod_perl.c
AddModule mod_geoip.c

Alias /perl/ /home/*******/public_html/*******/perl/
PerlModule Apache::Registry
<Location /perl/>
SetHandler perl-script
PerlHandler Apache::Registry
Options +ExecCGI
PerlSendHeader On
allow from all
</Location>

(*** replaces my account/domain names)

I also activated the geoip in the .htaccess of the domain using the cgiscript.
Checking php info() shows both mods are loaded (and seeing error log showing running)
I put my script (with shebang #!/usr/bin/perl/) in mydomain/perl/

Several questions:
1. how can i tell whether the cgiscript is running through mod_perl?
2. i started getting lots of segmentation fault (11) errors showing in my error logs, along with that domain having a blank page every 2-5 refreshes. What might cause these and how can i fix?
3. i have also noticed mod_gzip:TRANSMIT_ERROR:104 errors showing once in a while as well. What may be causing this?

I unloaded geoip and it wasnt that, and then unactivated mod_perl and the seg faults reduced greatly, but still getting the odd one here and there.

TIA
Server info: Apache/1.3.35 (Unix) mod_gzip/1.3.26.1a mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.4.2 FrontPage/5.0.2.2634a mod_ssl/2.8.26 OpenSSL/0.9.7a (mod_perl & mod_geoip disabled)

john127

7:36 pm on May 20, 2006 (gmt 0)

10+ Year Member



anyone?