Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

startup.pl mod_perl question

Quote Reply
startup.pl mod_perl question
Is this fine for PerlRequire /path/to/startup.pl in mod_perl or should we add or remove something?

#!/usr/bin/perl

$ENV{GATEWAY_INTERFACE} =~ /^CGI-Perl/ or die "GATEWAY_INTERFACE not Perl!";

BEGIN {
unshift(@INC, "/path /to//admin");
}

use Apache::DBI;
use Links;
use Links::DBSQL;
use Links::DB_Utils;
use Links::HTML_Templates;
Apache::DBI->connect_on_init("DBI:mysql:database:localhost", "user", "password");
Apache::DBI->{'Warn'} = 0;
1;

Thank you.

Subject Author Views Date
Thread startup.pl mod_perl question CyberLuke 4425 Sep 5, 2000, 12:44 PM
Thread Re: startup.pl mod_perl question
pugdog 4311 Sep 5, 2000, 1:44 PM
Thread Re: startup.pl mod_perl question
CyberLuke 4297 Sep 5, 2000, 2:24 PM
Thread Re: startup.pl mod_perl question
Alex 4260 Sep 9, 2000, 10:56 AM
Thread Re: startup.pl mod_perl question
pugdog 4261 Sep 9, 2000, 4:19 PM
Post Re: startup.pl mod_perl question
Alex 4237 Sep 9, 2000, 4:44 PM
Post Re: startup.pl mod_perl question
Alex 4241 Sep 9, 2000, 4:45 PM