|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11451 ODBC under Apache: DLL Initialization Failed
Submitted: 2001-06-12 21:03 UTC Modified: 2002-05-21 22:57 UTC
From: danielc at analysisandsolutions dot com Assigned:
Status: Not a bug Package: ODBC related
PHP Version: 4.0.5 OS: NT 4.0 SP6a
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: danielc at analysisandsolutions dot com
New email:
PHP Version: OS:


 [2001-06-12 21:03 UTC] danielc at analysisandsolutions dot com
Here's my config:
   Windows NT 4.0 SP6a
   Apache 1.3.20, Running as service "Logged On As" a particular user
   PHP 4.0.5

Apache and PHP runs normally.

BUT, when I hit a PHP parsed page that uses ODBC connections, I get the following error message:

   Drwtsn32.exe - DLL Initialization Failed
   Initialization of the dynamic link library F:\WINNT\system32\USER32.dll failed.
   The process is terminating abnormally.

This only happens when I have the Apache Service "Log On As" a separate user via "This Account."  There's no problem if I have the Apache Service "Log On As" the "System Account."

The special user account in question has full control over all files and directories in the F:\Program Files\Apache\* tree.

Everyone has read access on all files and directories in the F:\WINNT\* tree.

I followed the instructions in the "User Account for Apache Service to Run As (NT/2000)" section of and then rebooted the machine.  Still no luck.

Nothing shows up in Apache's error.log.

This may solely be an Apache problem, but I suspect it has to do with the interractions between PHP, ODBC and Apache.  Perhaps y'all can trace what's going on.

Probably the same problem reported in bug #8303:




Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-21 22:57 UTC]
Thank you for taking the time to report a problem with PHP.
Unfortunately your version of PHP is too old -- the problem
might already be fixed. Please download a new PHP
version from

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.

PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sat Jan 25 23:01:24 2020 UTC