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,
    }
  );

Reply via email to