in reply to Re: httpd fail to start when I include DBD::Oracle in the startup.pl
in thread httpd fail to start when I include DBD::Oracle in the startup.pl

Yes.the program ran from a command line and it also worked with "require".It doesnt work only if I put it in startup.pl . i am also not able to get an error message because it works everywhere.
  • Comment on Re: Re: httpd fail to start when I include DBD::Oracle in the startup.pl

Replies are listed 'Best First'.
Re: Re: Re: httpd fail to start when I include DBD::Oracle in the startup.pl
by perrin (Chancellor) on Sep 17, 2002 at 00:09 UTC
    I think I see the problem. Your use statement is being executed before you set ORACLE_HOME. Try this (use Apache is not needed):
    BEGIN { $ENV{ORACLE_HOME}='/home/'; } use Apache::DBI(); use DBI(); use DBD::Oracle(); use Apache::MyModule;