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

Debug it. Does it work from a command-line script? Does it work when don't use it until after startup.pl? Is it looking for some environment variables that aren't being set? Try doing a require inside an eval block and checking the error message in $@. Usually things like this have to do with permissions, finding tnsnames.ora, and other little environment issues.
  • Comment on Re: httpd fail to start when I include DBD::Oracle in the startup.pl

Replies are listed 'Best First'.
Re: Re: httpd fail to start when I include DBD::Oracle in the startup.pl
by Anonymous Monk on Sep 16, 2002 at 23:00 UTC
    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.
      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;