[unixODBC-support] Doing a SQLDriverConnect fails in Apache with Error 500: "Internal Server Error"

Nick Gorham nick.gorham at easysoft.com
Fri Jun 13 11:27:15 BST 2008


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.

-- 
Nick Gorham
Easysoft Limited
http://www.easysoft.com, http://www.unixODBC.org




More information about the unixODBC-support mailing list