php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31179 Apache 2 will not start. Error in LoadModule of httpd.conf
Submitted: 2004-12-18 10:59 UTC Modified: 2005-01-05 21:56 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: timothyweaver at hotmail dot com Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 4.3.10 OS: Windows XP SP2
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: timothyweaver at hotmail dot com
New email:
PHP Version: OS:

 

 [2004-12-18 10:59 UTC] timothyweaver at hotmail dot com
Description:
------------
Was using 4.3.6 successfully with Apache 2 configured with the SAPI php4apache2.dll. Upgraded to 4.3.10 by replacing the entire PHP directory with zip installation of 4.3.10. Now Apache 2 service will not start. Error is:

The Apache service named  reported the following error:
>>> Syntax error on line 175 of C:/Program Files/Apache Group/Apache2/conf/httpd.conf:     .

This line is:

LoadModule php4_module "c:/php/sapi/php4apache2.dll"

The line was not changed during the upgrade.

I have also tried this with the 4.3.10-DEV dated Dec 18 with the same results.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-18 11:57 UTC] sniper@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.


 [2004-12-18 12:11 UTC] timothyweaver at hotmail dot com
Ok, but something obviously changed in the php4apache2.dll that is causing it to fail to load, so I disagree that it is not a php-related issue. Moving back to the older version of php shows it is something in the newer version, because the old version loads fine.
 [2004-12-23 20:11 UTC] timothyweaver at hotmail dot com
You now have this bug and the bug at http://bugs.php.net/bug.php?id=31246 so the problem is happening with both Apache 1.3 and Apache 2.0. Sorry, but if a previous version of the PHP dll loaded fine and the latest version does not load with no changes to the underlying Apache configurations, then this not only implies that there is a bug in the SAPI support modules released by PHP.net, it proves it.
 [2004-12-23 22:35 UTC] timothyweaver at hotmail dot com
The error from Apache makes it clear there is something wrong in the DLL. Unfortunately, Apache does not say which procedure it is trying to call and setting the Log Level to debug does not give any additional feedback. The error is:

Syntax error on line 179 of C:/Program Files/Apache Group/Apache2/conf/httpd.conf:
Cannot load C:/php/sapi/php4apache2.dll into server: The specified procedure could not be found.

"The specified procedure could not be found" is some good evidence there is something wrong with the php4apache2.dll file.
 [2004-12-24 01:06 UTC] derick@php.net
Not really, it means that you have missing DLLs. No bug here -> bogus.
 [2005-01-05 21:56 UTC] timothyweaver at hotmail dot com
There is definitely a problem with the Windows binary distribution. But someone figured out a workaround. It would be more helpful if the PHP group would make some effort at determining if there is a problem in their distribution before immediately dismissing a report of such a problem.

The workaround is to copy the php4ts.dll from the root php directory and place a copy in the php\sapi folder. Apache 2 then starts fine.

I post this here so that others who are experiencing the problem (and there are others, because some of us have been communicating by email) are able to fix the problem.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 20:01:29 2024 UTC