[unixODBC-support] Doing a SQLDriverConnect fails in Apache with Error 500: "Internal Server Error"
miguel.rentes at efacec.pt
Fri Jun 13 11:36:23 BST 2008
I've done a simple .cgi that runs inside Apache and it works. But this
.cgi I'm working on right now is failing and I can't find the source of
the problem (since it follows the same steps as documented and as the
previous .cgi that worked) or how to correct it. If anyone has a clue
or a working example in Linux, please let me know.
Thanks in advance,
Nick Gorham wrote:
> Miguel Rentes wrote:
>> Hi everyone!
>> I'm feeling quite desperate... can anyone help me find out what is
>> going on with SQLDriverConnect? I have manage to solve the problem I
>> had the other day (see bellow) by changing httpd.conf and adding a
>> "PassEnv ORACLE_HOME" directive, but now I have a similar problem in
>> another .cgi, and I don't know what to do. I'm again getting the
>> "IM004" error, which I can't seem to get what I have to do to correct
>> it. This is code that is failing:
> I would guess its the same sort of problem, the driver is failing for
> whatever reason when its SQLAllocEnv is called. If the below code runs
> outside Apache, then the difference between the two environments must
> be the problem.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the unixODBC-support