php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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 http://httpd.apache.org/docs/win_service.html 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: http://www.php.net/bugs.php?id=8303

Thanks,

--Dan

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-21 22:57 UTC] kalowsky@php.net
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 http://www.php.net/downloads.php

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-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 11:01:30 2024 UTC