php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #39632 Running Apache 5.2.3 following the docs get error
Submitted: 2006-11-25 22:08 UTC Modified: 2007-08-17 11:33 UTC
From: soufi dot amin dot a at edumail dot vic dot gov dot au Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS: window xp
Private report: No CVE-ID: None
 [2006-11-25 22:08 UTC] soufi dot amin dot a at edumail dot vic dot gov dot au
Description:
------------
I got the error that others had reported but for different reason: "The specified module could not be found." when you try to load apache server and the error is reportd in httpd.conf's corresponding lines that try to register php extension.
the fault seemed as if the php 5 dll was not found, I tried to move it to  various dir same thing.
the error turned out to be that the documentation should state "you should load the dll corresponding to your apache version shown as the last numbers in the dll's name" instead of " php5apache2.dll" like it instructs for apache 2.x it should be "php5apache2_2.dll"

this is NOT an issue with white spaces but rather wrong description of error it is lke saying this is the wrong dll for your apache server and the right dll is not found.

Reproduce code:
---------------
add changes to the php's packaged install.txt
instead of
<start of old
Installing as an Apache module

   You need to insert these two lines to your Apache httpd.conf
   configuration file to set up the PHP module for Apache 2.0:

   Example 2-6. PHP and Apache 2.0 as Module
# For PHP 4 do something like this:
LoadModule php4_module "c:/php/php4apache2.dll"
# Don't forget to copy the php4apache2.dll file from the sapi directory!
AddType application/x-httpd-php .php

# For PHP 5 do something like this:
LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php

# configure the path to php.ini
PHPIniDir "C:/php"

end of old> type the following
# you should load the dll corresponding to your apache 
# version shown as the last numbers in the dll's name

# for example for apache ver 2.x
LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php

# for apache 2.2.x
LoadModule php5_module "c:/php/php5apache2_2.dll"
AddType application/x-httpd-php .php


Expected result:
----------------
php 5 will then work and apache server will load without error! (at least no errors due to php's dll)

Actual result:
--------------
it worked for me
:)
Regards
Amin

Note: phillip claims in bug #37343 Apache 2.2.X vs 2.0.X docs "Added this temp fix/note to the Windows apache2.xml:"
and the issue is closed, however it isn't
this needs to be fixed in PHP's 5.x install.txt as when I was looking for online docs and comments, I could not find teh solution, I came up with it myself and then I got this bug coming up while submitting. yet install.txt still needs updating regardless.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-08-17 11:33 UTC] vrana@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.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 05 17:01:34 2025 UTC