Gossamer Forum
Quote Reply
Mod Perl
I am really not sure if I am utilising mod perl or not... my host says they support mod_perl, but my environment variables say this:

System Information
======================================
Perl Version: 5.00503
Links SQL Version: 2.1.0
Persistant Env: mod_perl (0) SpeedyCGI (0)
@INC =
/s/categories.ca/cgi-bin/admin
/usr/libdata/perl/5.00503/mach
/usr/libdata/perl/5.00503
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd
/usr/local/lib/perl5/site_perl/5.005
.


The mod_perl (0) part..... does this mean mod perl is not active?

I also have this returned from the environment output:

SERVER_SOFTWARE => Apache/1.3.22 Ben-SSL/1.47 (Unix) mod_dtcl mod_python/2.7.6 Python/2.1.2 mod_throttle/2.11 mod_perl/1.26 PHP/4.1.2 FrontPage/4.0.4.3 rus/PL30.9


I have read the mod perl installation docs... but it all looks like settings for the installation of mod perl on a server, or something that my web host would have already done.... is there anything I need to do from within LSQL to be sure its turned on?

Last edited by:

sooke: Apr 14, 2002, 4:32 PM
Quote Reply
Re: [sooke] Mod Perl In reply to
It will say "1" when it is enabled. There's nothing to change in Links SQL. Your host would have to configure it to be used from their end.

Sean
Quote Reply
Re: [SeanP] Mod Perl In reply to
Thanks Sean, I am going to mail them the setup instructions now :-)
Quote Reply
Re: [SeanP] Mod Perl In reply to
Ok, still having probs with Mod Perl.

I contacted my host, and they said they installed Mod Perl on my server according to the instructions. I still get mod_perl(0) in the environment variables display.

The techs at my host say that they tested programs which will only run under mod perl and they ran smoothly...... is there anyway to check Links to be sure what is going on?
Quote Reply
Re: [sooke] Mod Perl In reply to
Ask your host why it isn't running under mod_perl when they say they followed instructions :)
Quote Reply
Re: [sooke] Mod Perl In reply to
Hi,

It looks like they have mod_perl in Apache, but Apache is not configured to run Links SQL using mod_perl.

They need to add a:

<Location /cgi-bin/links>
...
</Location>

type directive that matches where you have Links SQL installed, otherwise Apache treats it as a plain old cgi.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] Mod Perl In reply to
Thanks Alex,

I passed this onto my host.

The technician has replied with:

<Files *.pl>
SetHandler perl-script
PerlHandler Apache::Registry
Options ExecCGI
allow from all
PerlSendHeader On
</Files>

This is how Mod_Perl gets setup on your server when the host has PLESK installed.


At the moment, I am still getting mod_perl(0) from the environment printout...

Its all dutch to me! (sorry no offence to our dutch friends)
Quote Reply
Re: [sooke] Mod Perl In reply to
<Files *.pl>

This means only *.pl are executed under mod perl.
*.cgi should also executed under mod perl...

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Quote Reply
Re: [sooke] Mod Perl In reply to
In Reply To:
<Files *.pl>
SetHandler perl-script
PerlHandler Apache::Registry
Options ExecCGI
allow from all
PerlSendHeader On
</Files>

The files are ".cgi" not ".pl". It looks like they are only specifying ".pl" files to run under mod_perl.

(looks like webmaster33 and I posted close to the same time Laugh)

Sean

Last edited by:

SeanP: Apr 16, 2002, 5:03 PM
Quote Reply
Re: [SeanP] Mod Perl In reply to
Good point... I am going to write a ticket on that right now! Thanks
Quote Reply
Re: [sooke] Mod Perl In reply to
Thanks both of you! You have just got to admit... there is NEVER a shortage of great help around here!!Cool
Quote Reply
Re: [sooke] Mod Perl In reply to
No prob. Feeling good to help Cool

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Quote Reply
Re: [SeanP] Mod Perl In reply to
When I do:

<Files *.pl>
SetHandler perl-script
PerlHandler Apache::Registry
Options ExecCGI
allow from all
PerlSendHeader On
</Files>


mod perl still says (0). But when I do

<Files *.cgi>
SetHandler perl-script
PerlHandler Apache::Registry
Options ExecCGI
allow from all
PerlSendHeader On
</Files>


now I get an Internal Server Error. Any ideas why? I've got Mod_Perl installed

Server: Apache/1.3.20 (Unix) (Red-Hat/Linux) mod_ssl/2.8.4 OpenSSL/0.9.6b DAV/1.0.2 PHP/4.0.6 mod_perl/1.24_01 mod_throttle/3.1.2

and I'm running v5.6.0 built for i386-linux currently. This is a base installation when installing RedHat 7.2 so no modifications have been made. I have also tried this information:

<IfModule mod_perl.c>
Alias /cgi-bin/search /www/yourdomain.com/cgi-bin/search
<Directory /www/yourdomain.com/cgi-bin/search>
SetHandler perl-script
PerlHandler Apache::Registry
Options +ExecCGI
</Directory>
</IfModule>


I'm at a loss here and any help would be great! Crazy
Quote Reply
Re: [Sitegoodies] Mod Perl In reply to
Seeing the error would be good :)