dzacharczyk1
asked on
HTTP Error 500.0 - Internal Server Error
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:
http://www.howtogeek.com/50432/how-to-install-php-on-iis-7-for-windows-server-2008/
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
Module FastCgiModule
Notification ExecuteRequestHandler
Handler PHP
Error Code 0xc0000135
Requested URL http://localhost:80/phpinfo.php
Physical Path C:\inetpub\wwwroot\phpinfo .php
Logon Method Anonymous
Logon User Anonymous
Can anyone help me figure out what I'm doing wrong?
php.ini
- 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:
http://www.howtogeek.com/50432/how-to-install-php-on-iis-7-for-windows-server-2008/
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
Module FastCgiModule
Notification ExecuteRequestHandler
Handler PHP
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?
php.ini
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you for your help. I was able to download the windows installer and it's working now.
Regards,
David Z
Regards,
David Z
You're welcome, glad to help.
If anyone ever wants to fix this without using the MS installed, you can fix it by installing the VS C++ 2012 Redistributable. You have to download the x86 version (unless you installed x64 PHP which as of this writing was considered "experimental").
Go here: http://www.microsoft.com/en-us/download/details.aspx?id=30679
Go here: http://www.microsoft.com/en-us/download/details.aspx?id=30679
http://www.iis.net/learn/application-frameworks/install-and-configure-php-applications-on-iis/using-fastcgi-to-host-php-applications-on-iis