Re: ModPerl::RegistryLoader
Jiří Pavlovský <[email protected]>
| Newsgroups | gmane.comp.apache.mod-perl |
|---|---|
| Message-ID | <[email protected]> |
On 22.7.2011 18:15, Perrin Harkins wrote:
>> However this doesn't work as Apache is segfaulting.
> That makes it sound like it is working but there's something in your
> scripts that doesn't like being loaded in the parent process. Are you
> opening up database handles or files on the first hit and then trying
> to use them later?
>
I use Apache::DBI and initialize the db connection in startup.pl like so
Apache::DBI->connect_on_init("dbi:Pg:dbname=<dbname>",
"<user>",
"<password>",
{
pg_server_prepare => 1,
PrintError => 0,
RaiseError => 0,
AutoCommit => 1,
pg_enable_utf8 => 1,
Taint => 0,
}
);