Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Problem with mod_perl

Quote Reply
Problem with mod_perl
Hi,

I’m interested in running the .cgi scripts of my web site under mod_perl.

I’m using:

Gossamer Links version: 3.2.0
Apache/2.2.3 (CentOS)
Perl version: 5.8.8


My http.conf has:

<Location /cgi-bin/>
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
Options +ExecCGI
Order allow, deny
Allow from all
</Location>

I restarted the apache. When I went to the “Gossamer Links Administration Panel” clicking:

/cgi-bin/admin/admin.cgi >> Setup >> Environment

I read:

Running under mod_perl: Yes (version 2.000002), mod_perl 2 detected

Then, I wrote the startup.pl file:

use lib '/var/www/cgi-bin/admin';
use Links::mod_perl;
1;

I restarted the apache but the libs and modules listed in mod_perl.pm didn´t preload and all the web site was inaccessible. Nothing shows up in the error log.

What could be happening? Is mod_perl 2.000002 the right version to run Gossamer Links version: 3.2.0? If mod_perl is running, why won´t the libs and mods listed in mod_perl.pm preload?

Thanks in advance,

joseML
Quote Reply
Re: [JoseML] Problem with mod_perl In reply to
Do you have a script alias entry to reference the full path to the cgi-bin directory? E.g.:

Code:
ScriptAlias /cgi-bin/ "/path/to/your/cgi-bin/"

Other than that part your httpd.conf entry looks much the same as ours:

Code:
<Directory "/path/to/cgi-bin">
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
Options +ExecCGI
</Directory>
Quote Reply
Re: [aus_dave] Problem with mod_perl In reply to
Thanks aus_dave for your recommendation but the problem hasn't been fixed.
Quote Reply
Re: [JoseML] Problem with mod_perl In reply to
Contact GT using the support tab above - the few times I've needed it they have helped me out.