#17826 [Com]: PHP 4.2.1 Apache SAPI is not compatible with Apache 2.0.39
| From: | blalond at umich dot edu | Date: | Thu, 24 Oct 2002 01:52:41 +0000 |
| Subject: | #17826 [Com]: PHP 4.2.1 Apache SAPI is not compatible with Apache 2.0.39 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-23147@lists.php.net to get a copy of this message | ||
ID: 17826
Comment by: blalond@umich.edu
Reported By: jan@penninkhof.com
Status: Closed
Bug Type: Apache2 related
Operating System: Win32
PHP Version: 4.2.1
Assigned To: edink
New Comment:
If you're getting
"Cannot load C:/php4/sapi/php4apache2.dll into server: The specified
module could not be found."
or
"apache: module "c:\php4build\snap\sapi\apache2filter\sapi_apache2.c"
is not compatible with this version of Apache (found 20020628, need
20020903)."
I got it working and this is everything I did:
1. Download:
a. Apache: apache_2.0.43-win32-x86-no_ssl.msi
b. PHP: php-4.2.3-Win32.zip
c. Latest PHP Snap:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
2. Install
a. apache
b. PHP (by upzipping and renaming dir to "c:\php"
2. Copy c:\php\php.ini-recommended to c:\windows\php.ini
3. Edit c:\php.ini
-doc_root = [current apache doc root]
-extension_dir = C:\php\extensions
4. Copy c:\php\php4ts.dll to c:\winnt\system32\
4. Copy php4apache2.dll from the c. Snap zip file to c:\php\sapi\
6. Edit Apache's configuration file and add:
LoadModule php4_module c:/php/sapi/php4apache2.dll
AddType application/x-httpd-php .php
Previous Comments:
------------------------------------------------------------------------
[2002-10-12 04:43:08] jhiltunen@genencor.com
I confirm that Apache 2.0.43 and latest PHP4 php4apache2.dll works
perfectly. However, I haven't heard about php4ts.dll ? What for is that
?
P.S. getting Tomcat 4.11 + Apache 2.0.43 + MySQL + PHP4 working
together seems to be even more painfull that getting Apache 2 and PHP4
working together : )
Jari
------------------------------------------------------------------------
[2002-10-11 14:17:54] kronuz@email.com
The problem with this message:
"Cannot load C:/php4/sapi/php4apache2.dll into server: The specified
module could not be found."
Should be addressed as:
1. Install PHP/Apache
2. Copy required files from c:\php\dlls\ to c:\winnt\system32\
3. Grab the latest php snapSnap (http://snaps.php.net/win32/)
4. Copy php4apache2.dll from the snap to c:php\sapi\
5. Copy php4ts.dll from the snap c:winnt\system32
6. Edit Apache's configuration file and add:
LoadModule php4_module c:/php/sapi/php4apache2.dll
AddType application/x-httpd-php .php .phtml
That's it (probably many are just missing the php4ts.dll part)
------------------------------------------------------------------------
[2002-10-11 08:37:20] edink@php.net
PHP will work with whatever is current Apache version at the time of
its release.
Newer versions of Apache2 often break backwards compatibility so
php4apache2.dll will not work with them.
So either use the version of Apache that is supported by that PHP
release, or use (almost) always current snapshot from
http://snaps.php.net/win32/
------------------------------------------------------------------------
[2002-10-11 07:01:27] emchojin@hotmail.com
Thank you for all the Help
Its working perfect with the php4apache2.dll from the Prerelease PHP
Version 4.2.4 from
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
But it take alot of time to find this Bugreport.
If you would add a little link from the Downloadpage of PHP to this
Page, it would help many scared php-newbies like me ;)
Thanks for all the help
Chojin
------------------------------------------------------------------------
[2002-10-05 10:58:07] me@jonsimpson.co.uk
after having some trouble with this myself on both apache 2.0.42 and
2.0.43 and finding this thread, i used just the php4apache2.dll file
from
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
with the rest of the files being php 4.2.3 ones, and it works perfectly
now. havent seen any bugs so far.
hope this helps someone :)
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/17826
--
Edit this bug report at http://bugs.php.net/?id=17826&edit=1