my problem wasn't even php related. it was something wrong with my 2003 sp2 install. i installed an sp1 copy in a virtual machine and it worked straight away....
first remove that php5 installed package i pointed to earlier....
download and unzip this to c:\php
http://uk2.php.net/get/php-5.2.2-Win32.zip/from/uk.php.net/mirror
inside there is a file named
php.ini-recommended
rename this to php.ini - now open it in notepad and go down to the extensions section and uncomment (remove the ; ) from the extensions you want to use. i think you can get by with just these for mysql? i'm no php expert but it works for me....
;extension=php_mbstring.dll
;extension=php_mcrypt.dll
;extension=php_mysql.dll
becomes
extension=php_mbstring.dll
extension=php_mcrypt.dll
extension=php_mysql.dll
save the file when done.
now right click my computer, goto advanced, environment variables, under "system variables", click new, type in
PHPRC (must be caps)
and set the value to
c:\php
now edit the path variable. add
c:\php
to the end of what's already there.
now open up internet services manager. goto "web services extensions". right click anywhere in the right hand pane and select "add a new....".
the name will be
php
and the path will be
c:\php\php5isapi.dll
tick the box to allow it.
now right click on your default website and goto properties and then the "home directory" tab. change the "execute permissions" to "scripts and executables". click on configuration and click on add. again browse to the same isapi.dll thingy and set the extension to php. click ok. now open a command prompt and type in
net stop iisadmin
select y when prompted.
now type
net start w3svc
done.
edit: you'll want to add index.php as a default page (documents tab on the website properties.)