Problems arises because the php binaries are 32 bit only.
- Enable CGI by adding it as a Role Service to IIS.
- Download http://www.fusionxlan.com/PHPx64/php-5.2.5-x64-2007-11-12.zip and extract to C:\php.
- Copy libmysql.dll to C:\Windows\System32
- Copy php.ini-dist to C:\Windows\php.ini
- Edit php.ini and:
- Set extension_dir to c:\php\ext
- Set cgi.force_redirect to 0 and uncomment the line.
- Enable php_mysql.dll by uncommenting the line.
- Go to Handler Mappings in IIS
- Add Module Mapping:
- Request path: *.php
- Module: CgiModule
- Executeable: c:\php\php-cgi.exe
- Name: PHP
- Recycle the application pool to reload php.ini