Home : Products : Gossamer Links : Discussions :

Products: Gossamer Links: Discussions: Re: [CrazyGuy] LinksSQL 2, Apache 2 and mod_perl: Edit Log

Here is the list of edits for this post
Re: [CrazyGuy] LinksSQL 2, Apache 2 and mod_perl
Well, this is still not working and I'm just going round in circles with my tech guys now.

The story so far:

Have installed LSQL 2.2.1

The mod_perl config from previous version is still implemented:
httpd.conf contains the line:
Code:
PerlRequire /home/virtual/sitexx/fst/var/www/cgi-bin/startup.pl
and that file contains
Code:
use lib '/home/virtual/sitexx/fst/var/www/cgi-bin/admin';
use Links::mod_perl;

1;

The mod_perl notes with this new version include a new snippet:

Code:
<Location /url/to/links/cgi>
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options +ExecCGI </Location>

BTW, the LSQL site is on a dedicated server, but is a name-based site (Ensim CP-talk) sharing an IP with other sites.

Adding that snippet to the site's config file /etc/httpd/conf/sitexx/general with the relative URL of the site's cgi-bin

Code:
<Location /cgi-bin>
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options +ExecCGI
</Location>
results in server errors for all cgi on that site. My tech guys maintain that Apache wants full paths not URLs and want to replace that snippet with:

Code:
<Directory /home/virtual/sitexx/fst/home/*/public_html/cgi-bin>
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options +ExecCGI
</Directory>

This doesn't do any harm, but LSQL still doesn't think it's running under mod_perl
Changing the first line to a more direct
<Directory /home/virtual/sitexx/fst/home/var/www/cgi-bin> makes no difference.

So at this point we're about at the end of our wits. Getting mod_perl working is pretty crucial to managing the server load. I'd be grateful to anyone who can either see any glaring faults in what we're doing, compare it with their installation, or suggest any alternatives to try.

Thanks in advance.

Last edited by:

CrazyGuy: May 31, 2005, 4:25 AM

Edit Log: