faqts : Computers : Programming : Languages : PHP : Installation and Setup : PHP4

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

23 of 26 people (88%) answered Yes
Recently 8 of 10 people (80%) answered Yes

Entry

PHP4.2.3 & APACHE 2.0.40 on Windows 2000 DOES NOT WORK

Sep 16th, 2002 11:09
Kelson Vibber, Vanna S, http://www.php.net/http://www.php.net/manual/en/install.apache.php


PHP4.2.3 & APACHE 2.0.40 on Windows 2000 ws
Cannot launch Apache server after including lines as suggested by 
Article. "Installing Apache on Windows"
Here are the lines:
LoadModule php4_module c:/php/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php
The files DO exist in c:/php/sapi  Not sure if anything changed in 
PHP4.2.3 or Apache 2.0.40
If I comment the above three lines. Apache server launches fine.
Any help will be appreciated.
Regards.
Vanna
--------------------------------
First of all, the Apache 2.0 module interface is vastly different from
the one for Apache 1.3.  Skip all those config lines you have, and
instead use:
LoadModule php4_module c:/php/sapi/php4apache2.dll
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
I usually copy the DLL to the Apache modules folder, but it ought to work
in-place also.
Secondly, the PHP module for Apache 2.0.x is still experimental and may
not work, depending on which version of each is installed.  You can try
a development version from http://snaps.php.net/win32/ (use the ones
marked STABLE), or you can install it using the CGI interface as
described in the PHP manual.
-Kelson