php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10969 apache don't start, cannot load php4apache.dll
Submitted: 2001-05-19 10:14 UTC Modified: 2001-05-23 16:29 UTC
From: ipcholkin at yahoo dot com Assigned:
Status: Not a bug Package: Apache related
PHP Version: 4.0.5 OS: Win 98
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: ipcholkin at yahoo dot com
New email:
PHP Version: OS:

 

 [2001-05-19 10:14 UTC] ipcholkin at yahoo dot com
When I try to start apache, it says:

"Syntax error on line 979 of k:/apache/apache/conf/httpd.conf:
Cannot load k:/apache/apache/modules/mod_php4/sapi/php4apache.dll into server: (
1157)"

Added lines in apache.conf are:

-------CUT HERE------------
# for the apache module
LoadModule php4_module modules/mod_php4/sapi/php4apache.dll 
AddType application/x-httpd-php .php4

#for the cgi binary (you can use that one compiled with force cgi redirect too)
ScriptAlias /php4/ "k:/apache/apache/modules/mod_php4/"
Action application/x-httpd-php4 "/php4/php.exe"
AddType application/x-httpd-php4 .php
-------CUT HERE------------ 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-23 16:29 UTC] ipcholkin at yahoo dot com
I found what the error was:
Apache could not find odbc32.dll.
After I installed this library the server started normally.
 [2003-10-19 13:55 UTC] bugs dot php dot net at solle dot net
I had the same problem -- the httpd.conf syntax was fine, but php4apache.dll refused to load. 

Suspecting a dependency issue, I fired up Dependency Walker. Sure enough, neither of the two DLLs it relies on ...

APACHECORE.DLL
PHP4TS.DLL

... were in the search path. Guessing that Apache knew where to find its DLL, I copied PHP4TS.DLL alongside it, and suddenly everything started behaving.

Hope that helps,

Sean.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 01:01:30 2024 UTC