Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

mod_perl referenced twice

Quote Reply
mod_perl referenced twice
How would you reference two GT programs in Apache for mod_perl?

startup executes - Apache does not
=================================

PerlRequire /usr/home/fyba11/usr/local/etc/httpd/cgi-bin/startup.pl

#DBSql
<Location /cgi-bin/membersSQL>
SetHandler perl-script
PerlHandler Apache::Registry
Options +ExecCGI
PerlSendHeader On
</Location>


#GT Forum
<Location /cgi-bin/Forums2>
SetHandler perl-script
PerlHandler Apache::Registry
Options +ExecCGI
PerlSendHeader On
</Location>

===========

startup.pl (Works at prompt)

use lib '/usr/home/fyba11/usr/local/etc/httpd/cgi-bin/membersSQL/admin';
require Dbsql::mod_perl;

use lib '/usr/home/fyba11/usr/local/etc/httpd/cgi-bin/Forums2/admin';
require GForum::mod_perl;
Quote Reply
Re: [gatman] mod_perl referenced twice In reply to
Hi,

That looks correct. One thing, you always want to put the newest program first in your startup.pl file (so Gossamer Forum should probably come before DBMan SQL).

If apache does not start, check your error logs.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] mod_perl referenced twice In reply to
Many thanks Alex.