php4 on apache2 and IIS on windows xp

stop IIS and Apache

extract the zip file to c:\programmer\php
copy c:\programmer\php\php4ts.dll to c:\windows\system32\
copy c:\programmer\php\php.ini-recommended to c:\windows\php.ini

edit php.ini. Put:
doc_root = c:\webroot
extension_dir = “c:\programmer\php\extensions\”
session.save_path = c:\Inetpub\tmp\
if on IIS:
browscap = c:\windows\system\inetsrv\browscap.ini
done editing php.ini

create c:\Inetpub\tmp and make it writeable for all users, or for the web server user

for apache2 install:
edit httpd.conf. Put:
LoadModule php4_module “c:\programmer\php\sapi\php4apache2.dll”
AddType application/x-httpd-php .php

add ‘index.php’ to DirectoryIndex
done editing httpd.conf

for IIS install:
open the management console (start -> right click on ‘my computer’ -> manage)
go to Internet Information Service
right click on ‘Default Web Server’ and click properties
click Isapi filters and add
type a filter name (‘PHP’ would do fine) and give the path to php4isapi.dll (c:\programmer\php\sapi\php4isapi.dll)
click ok and go to the tab ‘Home Directory’
click ‘configuration’
click ‘add’
give the path to php4isapi.dll and the extension type ‘.php’
check ‘all methods’ and ‘script engine’
close all dialogs and restart IIS

Dette indlæg blev udgivet i Knowledge Base, Old Base, Windows. Bogmærk permalinket.

Skriv et svar