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
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.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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: Fri Apr 19 13:01:30 2024 UTC