I feel totally inadequate because I'm just not getting php to run under iis (php 5, iis 5, xp pro).
I had it running on an older machine on Win 2000 and didn't have a fraction of the problems I've had now. (I've listed further below what I've done ... excluding the obvious steps such as downloading & installing php)
The path statement finds the php directory (C:/php) but when I run C:/Inetpub/wwwroot/test.php (where the file is a sysinfo statement) I get the entire sysinfo output going out into dos as dos commands; that is if I go into dos and run test.php but capture the output to an html file and run that html file in IE I have the sysinfo page that I would have expected.
I'm sure the problem is easier than it seems but I've been looking at it for too long now.
What I've done so far:
Extracted the php files into c:\php
Installed IIS 5.1
In php directory, edited php.ini:
Changed doc_root= with doc_root = C:\Inetpub\wwwroot.
Changed extension_dir = with extension_dir = "C:\php\ext".
Changed cgi.force_redirect = 1 with cgi.force_redirect = 0.
In IIS, set ISAPI filter name as PHP and executable as C:\php\phpisapi.dll.
Added executable as C:\php\php-cgi.exe and extension as ".php".
Set "check that the file exists" to on
Checked "chache ISAPI applications"on.
Added index.php to the default document page, checked "enable default document".
My machine is named zog
In explorer, turned off simple file sharing.
In C:\InetPub\wwwroot\ given modify rights to IUSR_ ZOG.
Changed the Execute Permissions to 'Scripts only'