Click to See Complete Forum and Search --> : Win2k / Apache2 / PHP4.2.1 -- error


Anon
06-23-2002, 12:17 AM
I downloaded the PHP zip for version 4.2.1 and unzipped to c:\php\ back when I was running Apache 1.3.24 and it worked fine. Then I uninstalled Apache1 and installed Apache2 and put this in my config file...

---------------
LoadModule php4_module c:/php/sapi/php4apache2.dll
AddType application/x-httpd-php .php
---------------

Then, i try running Apache2 and I get this error...

---------------
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 sure why it uses c:\php4build\ ? but it does. Ive checked my PHP ini files and apache conf files and havn't found anything abnormal that could be creating this error.

like I said above, i downloaded the standard zipped up version of PHP4.2.1 and the install for Apache2. Any comments or suggestions would be really helpful.

Thanks!

-Kyle

Anon
06-23-2002, 12:20 AM
Apache 1.3.26, not 1.3.24, sorry about that.

Anon
06-23-2002, 11:55 PM
Hey Kyle,


I had that exact problem today. You should download PHP 4.3.0 and it will work fine. Here is the link
http://snaps.php.net/win32/php4-win32-latest.zip

Anon
06-24-2002, 04:15 AM
Hi Partick,

I did exactly as advised. I did not help. I still have problem when start the Apache server.

madsosterby
06-24-2002, 09:01 AM
If using apache 2.0.x then you must copy "\php\experimental\apache2filter.dll to \windows\system\"
to get modules to work!

and remember to Copy the file \php\php4ts.dll to c:\windows\system\ if you updated PHP.

Tjeck my site for more info, at www.mdz.dk

Greets, Mads

Anon
06-24-2002, 12:24 PM
Thanks, this works for me just fine.

Anon
06-24-2002, 12:36 PM
I installed PHP to c:\php\ and there is no experimental folder. I searched for
apache2filter.dll and it found nothing on my whole computer. I think that the apache2filter thing was a past version of PHP for Apache2? anyways... I copied php4ts.dll to c:\winnt\system32\ folder and there was an identical file there (which I overwrote) and it still didn't work after that. The above method (posted by patrick) works just fine though.

Anon
06-24-2002, 01:54 PM
Supri...you must uninstall Apache and reinstall it. Before reinstalling, make sure you delete all the files that the uninstall didnt get. It should work just fine.

Anon
06-28-2002, 12:53 PM
I did as suggested, the apache2 starts, but when I try to test test.php, I got the message:
Server error!
C:/php/test.php is not executable; ensure interpreted scripts have "#!" first line

The apache is 2.0.39, the conf file I added:
LoadModule php4_module c:/php/sapi/php4apache2.dll
ScriptAlias /php/ "C:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/sapi/php.exe"

I also copied the dlls to system32, what am I missing? Thanks for the help.