Click to See Complete Forum and Search --> : WinXP+apache 2.0.39+PHP 4.2.1
Hi.
I have having troubles with that setup.
LoadModule php4_module modules/php/sapi/php4apache2.dll
and I have put php4ts.dll in the system32 dir.
I get this error:
apache: module "c:\php4build\snap\sapi\apache2filter\sapi_apache2.c" is not comp
atible with this version of Apache.
Please contact the vendor for the correct version.
Thanks for any help!
PHP 4.2.1 + apache 2.0.39 aren't compliant atm. There's a rumour that it's working on some machines, I don't think so. Go get Apache 1.3.26 and you'll be out of trouble!
I run a WinXP + Apache2 + PHP4.2.1 + mySQL with no trubble. The funny thing is i cant get it to work on another system with the exact same OS and Apache and php versions. I get the same error.
If anybody have any details....Plz post
Rohith
sirarker
07-26-2002, 05:15 AM
The Apache server 2.0.39 http://www.apache.org/dist/httpd/binaries/win32/
Latest stable PHP http://snaps.php.net/win32 (check
the log file http://snaps.php.net/win32/snapshot-STABLE.log
and find the line that says 'Building php4apache2'. If there's an OK next
to it then you can download that version from the parent directory http://snaps.php.net/win32 )
Install Apache server
Unzip the php4-win32-STABLE-snapshotnumber.zip, you'll get a folder
php4-win32-STABLE-snapshotnumber
Rename it to PHP and copy it to the root drive (usually c:\, so you end up
with c:\PHP)
Copy the php.ini.recommended file to c:\winnt (or c:\windows) and rename
it php.ini
edit php.ini in notepad as follows:
1. find 'doc_root' using ctrl+F and set doc_root = "C:\Program
Files\Apache Group\Apache2\htdocs" (assuming you installed Apache in
its default path)
2. find 'extension_dir' using ctrl+F and set extension_dir =
"C:\PHP\sapi"
3. save it and exit
Move the file php4ts.dll from C:\PHP to c:\winnt\system32 (or
c:\windows\system)
Go to Start -> Programs -> Apache HTTP Server 2.0.39 -> Configure
Apache Server and click on 'Edit the Apache httpd.conf Configuration File'
the httpd.conf file opens up. Look for the block of LoadModule statements
and at the end of the block add
LoadModule php4_module c:/php/sapi/php4apache2.dll
<FilesMatch "\.php$">
SetOutputFilter PHP
</FilesMatch>
then look for AddType using ctrl+F and below AddType application/x-tar
.tgz add
AddType application/x-httpd-php .php
Save and exit.
Stop Apache and start again and you should be good to go.
Goog Luck.
you can consult here:
http://www.php.net/manual/en/install.windows.php#install.windows.extensions
This is a common question, and you can find the thread that shows you what you need to do to get it working. Go to the link below and follow the instructions.
http://www.phpbuilder.com/forum/read.php3?num=3&id=111658&loc=0&thread=111658
sirarker
07-28-2002, 09:09 AM
I finally get the way out.that is,add these
items after
LoadModule ... .../sapi/php4apache2.dll
<FilesMatch "\.php$">
SetOutputFilter PHP
SetInputFilter PHP
</FilesMatch>
thanks very much for rufo@NOSPAMrochester.YUPMETOO.rr.com
find his advice here
http://www.php.net/manual/en/install.apache.php
PHP Builder
Copyright WebMediaBrands Inc. All Rights Reserved.