Gossamer Forum
Home : Products : Gossamer Links : Discussions :

mod_perl installation

Quote Reply
mod_perl installation
Not very clear how I am doing this.

1 - I installed mod_perl, no problem.

2 - I updated httpd.conf to include

<Location /home/site_name/cgi-bin>
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options +ExecCGI
PerlSendHeader On
</Location>

but I can not find any startup file, any ideas?

Where do I add

use lib '/home/site_name/cgi-bin/admin';
use Links::mod_perl;

How do I get mod_perl started?

How do I know it's working?

Thank you.

Quote Reply
Re: mod_perl installation In reply to
Hi,

All mod_perl installations should have a startup file which load commonly used scripts. You should add:

PerlRequire '/path/to/startup.pl'

in your httpd.conf file. Then in the startup.pl file, Links SQL needs:

use lib '/path/to/admin';
use Links::mod_perl;

But you can also put in this file any other use's or code to run other scripts.

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: mod_perl installation In reply to
So, I add the following to httpd.conf, that fine,
PerlRequire '/path/to/startup.pl'

but then I need to create a startup.pl file with the following in it?

use lib '/path/to/admin';
use Links::mod_perl;

Is that right?

How do I know if it's working?

Do I need to restart apache or how does that work? Thank you.

Quote Reply
Re: mod_perl installation In reply to
 
My host gives much different instruction on doing this, but the admin script just goes to 500.

see hostpro faq:

http://www.hostprosupport.net/freedom/faq/apache_mod_perl.htm

I'm on a shared server with root access.



Quote Reply
Re: mod_perl installation In reply to
Hi,

If you are using 2.0.3, and go to Setup->Environment you should see mod_perl (1) under the Persistent Environment section.

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: mod_perl installation In reply to
Hi,

You need:

PerlSendHeader On

in there as well as a startup file:

PerlRequire '/path/to/startup.pl'

which contains:

use lib '/path/to/linkssql/admin';
use Links::mod_perl;

Then when you start Apache you should see "Preloading Links SQL ..".

Cheers,

Alex

--
Gossamer Threads Inc.