Click to See Complete Forum and Search --> : win2k + apache2 install probs
Can't seem to get php configured on apache2 on windows 2000. I get the following error when running apache from command line:
C:\Program Files\Apache Group\Apache2\bin>a
Syntax error on line 138 of C:/Program File
f:
Cannot load C:/php/sapi/php4apache.dll into
ot be found.
The apache.conf file is as follows:
LoadModule php4_module c:/php/sapi/php4apache.dll
AddType application/x-httpd-php .php
I have followed the installation instructions, but cannot get the sapi version working. I can use php.exe and apache runs ok, but won't parse php files.
Any ideas?
dC
PHP doesn't use the same dll's for Apache2 as Apache.
The correct statement should be:
LoadModule php4_module c:/php/experimental/apache2filter.dll
HTH
Justin
The version of PHP that I just recently downloaded doesn't come with the apache2filter.dll, let alone an experimental folder. Am I missing something here (apart from a file)?
Am I better off using Apache 1.3 and SAPI or just sticking it out with the bog standard CGI version and apache 2?
Coming from IIS and ASP, I can see why Apache & PHP can be off-putting for some people!
dC
There should be a php4apache2.dll file in the sapi folder.
I'm still not able to get mine to work however. Getting an error message that states:
APACHE: module "c:\php4build\snap\sapi\apache2filter\sapi_apache2.c" is not compatible with this version of Apache. Please contact the vendor for the correct version.
I'm not using c:\php4build anywhere on my computer.
-timmyg
Yep. Been there, got the t-shirt. I have only managed, so far, to get the cgi version running, but the the sapi version just won't play.
Anyone! Please!
dC
Right, just managed to get php4.2.1 to work with an old version of apache (1.3.22) using the SAPI filter. PHPINFO records this as using the server API, which is good.
But I would still like to use apache 2.
dC
sdanelson
06-22-2002, 05:42 PM
Had exactly the same problem, and have not found a solution yet. Does any one know if they(php or apache) are working on this?
sn
sdanelson
06-22-2002, 06:36 PM
Goto http://snaps.php.net/win32/
Download "php4-win32-200206221800.zip"
***This is a non-stable snapshot do not replace your php installation with this one****
Just find and extract the php4apache2.dll from the sapi directory in the zip file. Replace the old dll with with this new dll.
I did this and got it to work with no problems so far.
Kudos to
Matt Parlane
Zevi Interactive
matt@zevi.net
I found his post on this problem and this solution at the following link.
http://news.php.net/article.php?group=php.windows&article=14313
sn
Thanks for that. Works a treat now :)
Does anybody know when a stable version of the apache2 filter is being released?
dC
Try using this new dll from php.net to make php 4 work with apache 2.0.39 http://ftp.proventum.net/pub/php/win32/php4.2.x-apache2.zip
The link is from http://bugs.php.net/bug.php?id=17826
artman
06-27-2002, 10:32 AM
You are the BOMB...
Mucho Thanx!!!!
Now I can see if this new Apache release/fix cures my resource-hogging... ;-)
Thanks again!
PHP Builder
Copyright WebMediaBrands Inc. All Rights Reserved.