|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16769 Upgraded to Apache 2 with PHP not working
Submitted: 2002-04-23 15:53 UTC Modified: 2003-02-08 02:28 UTC
From: shirkdog2 at hotmail dot com Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 4.2.0 OS: Windows 2000
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: shirkdog2 at hotmail dot com
New email:
PHP Version: OS:


 [2002-04-23 15:53 UTC] shirkdog2 at hotmail dot com
Basically I tested PHP on the windows binary of apache 1.3.24 and everything was great.  However when going to apache 2.0.35, the same entries that worked for apache 1.3.24 seem to cause errors.  Apache will only run when I comment out the MODULES CONFIGS in the httpd.conf.  I hope this is a known issue, I just do not want to reload the old apache if you have a patch or different commands.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-23 16:12 UTC]
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

 [2002-05-03 11:17 UTC] orion_web35 at hotmail dot com
i tested php with Apache 2 on windows 2000 and dont work!
the entries of MODULES CONFIGS for the Apache 1.2.24 dont run in Apache 2.0.35
 [2002-05-17 01:59 UTC] midori at quicksilver dot net dot nz
I've encountered the exact same problem on Win98.  Apache 1.3.23 (Win32) runs PHP/4.2.0 fine, however, Apache 2.0.36 (Win32) crashes with the following error:
Syntax error on line 946 of (path_to_conf)/httpd.conf:
Cannot load (path_to_php)/sapi/php4apache.dll into server: 

One of the library files needed to run this application cannot be found.
 [2002-05-22 21:32 UTC] shirkdog2 at hotmail dot com
I had to install Apache 1.3.24 to continue development.  Until there is stable support for Apache 2
 [2002-06-30 09:11 UTC] sumpfbewohner at gmx dot de
I have the same Problem as
 [2002-07-02 21:17 UTC] shirkdog2 at hotmail dot com
Lets look at this, and what about version 4.2.1  However, the latest Apache patch 1.3.26 for the chunk code overflow and PHP 4.2.0 is still working. Its just 2.0.35 that I am conceared with
 [2002-07-02 21:31 UTC]
For apache2 you need latest CVS versions of both apache2 and PHP. Someone might have compiled those already for Win32, but that's really not our problem. 

 [2002-11-18 16:22 UTC] neoprototype at hotmail dot com
I recently downloaded Apache 2.0.43 Windows MSI Installer,
and Php 4.2.3 as well. I set up the server and it works fine. However when uncommenting the lines I put so it loads the php modules the apache server gives me two different errors. When using the php4apache.dll it tells me that the required libraries to run php are missing and it points to a directory wich doesn't even exist. When I use the php4apache2.dll, apache says that it needs a newer version of the dll. Is this an apache or a php problem? I tried both the installer package of php (Which says the scripts to configure apache aren't ready yet) and the binary zip distribution as well.
 [2003-02-08 02:08 UTC] jeff dot zhu at gesm dot ge dot com
I met the same issue. who can help me?
 [2003-02-08 02:28 UTC]
1. Use the appropriate version of PHP matching to the installed Apache2 binary.

2. Be sure to remove all the related binaries (.exe and .dll) that came with the previous version of PHP and have probably been installed in c:\windows, c:\winnt or c:\winnt\system32, whenever you reinstall either Apache2 or PHP.

3. Recheck your httpd.conf to avoid enabling two conflicting directives. You always have to use a single AddType directive instead of old-fashioned Filter directives.

 [2004-05-26 14:40 UTC] Duckbox at tiscali dot nl
fix: with Apache2 use php4apache2.dll instead! This worked fine with me on Windows XP
 [2004-05-26 14:40 UTC] Duckbox at tiscali dot nl
fix: with Apache2 use php4apache2.dll instead! This worked fine with me on Windows XP
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 17 07:01:27 2024 UTC