I've been trying for a couple of days to get PHP working on my IIS 7 webserver. Windows 2008 Standard R2 SP1. I follow the instructions on downloading the non-thread safe zip and unpacked to C:\PHP
- copied the php-production file to C:\Windows\php.ini
- I did the following:
Uncomment and set the key, cgi.force_redirect = 0
Uncomment the key, fastcgi.impersonate = 1
Uncomment and set the key, extension_dir to the ‘ext’ folder in the path PHP was extracted to (i.e. ‘C:PHPext’).
Set the key, date.timezone to the time zone of your server (the URL on the line above this key lists the accepted values).
- I added the application in FasCGI Settings
- I a added the handler in Handler Mapping
- I created phpinfo.php in ...inetpub\wwwroot and inserted the following code:
<?php phpinfo(): ?>
I tried to test in the browser by going to http://localhost/phpinfo.php
The instructions I used to set it all up are from the link below:
I have attached a copy of the php.ini file for review if it helps.
The problem I'm encountering is below:
HTTP Error 500.0 - Internal Server Error
C:\PHP\php-cgi.exe - The FastCGI process exited unexpectedly
Detailed Error Information
Error Code 0xc0000135
Requested URL http://localhost:80/phpinfo.php
Physical Path C:\inetpub\wwwroot\phpinfo
Logon Method Anonymous
Logon User Anonymous
Can anyone help me figure out what I'm doing wrong?