ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> phpdoc
phpdoc
[PHP-DOC] #39632 [NEW]: Running Apache 5.2.3 following the docs get error
by Soufi Dot Amin Dot A At Edumail Dot Vic Dot Gov Dot Au other posts by this author
Nov 25 2006 2:09PM messages near this date
[PHP-DOC] #39633 [Opn]: CHM Help compiled incorrectly | [PHP-DOC] #39631 [NEW]: Documentation CHM files broken. They contain only external links to h:\phpdoc\>
From:             soufi dot amin dot a at edumail dot vic dot gov dot au
Operating system: window xp
PHP version:      Irrelevant
PHP Bug Type:     Documentation problem
Bug description:  Running Apache 5.2.3 following the docs get error

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.

-- 
Edit bug report at http://bugs.php.net/?id=39632&edit=1
-- 
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39632&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39632&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39632&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=39632&r=fixedcvs
Fixed in release:             http://bugs.php.net/fix.php?id=39632&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=39632&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=39632&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=39632&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=39632&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=39632&r=notwrong
Not enough info:              http://bugs.php.net/fix.php?id=39632&r=notenoughinfo
Submitted twice:              http://bugs.php.net/fix.php?id=39632&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=39632&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=39632&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=39632&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=39632&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=39632&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=39632&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=39632&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=39632&r=mysqlcfg

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved