in reply to mod_perl 2 DBI problem
Look at the input to the DBI functions, see if there are variables there that could be causing the problem, and do sanity checks by logging or debugging to screen to make sure the parameters are what you expect them to be.
Also, you say your script works from the command line - is it exactly the same script you are running from mod_perl? Usually you'd at least have to be doing a '-e handler' from the command line to make that work, and simulate the apache request obj and the rest of the mod_perl interface. Perhaps your module isn't fully adapted to work in mod_perl? What command line do you use?
Another thought. If you know it works through the command line, as a half-way measure, try just calling the script through the shell with backticks or system(). At least you'll have more context on when your database connection works and when it doesn't.
It's hard to give a better response without some code to look at.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: mod_perl 2 DBI problem
by imcsk8 (Pilgrim) on May 06, 2005 at 00:33 UTC |