HTTP Error 500.0 - Internal Server Error

Posted on 2013-10-13
Medium Priority
Last Modified: 2015-07-17
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
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?
Question by:dzacharczyk1
LVL 84

Accepted Solution

Dave Baldwin earned 2000 total points
ID: 39569654
I would suggest that you dump that and use the Microsoft Web Installer for PHP.  It has worked quite well for a number of people that had trouble with other methods.  http://www.microsoft.com/web/platform/phponwindows.aspx
LVL 18

Expert Comment

by:Emmanuel Adebayo
ID: 39569711

Author Closing Comment

ID: 39569991
Thank you for your help. I was able to download the windows installer and it's working now.

David Z
LVL 84

Expert Comment

by:Dave Baldwin
ID: 39570046
You're welcome, glad to help.

Expert Comment

ID: 40887000
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

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

This article discusses how to implement server side field validation and display customized error messages to the client.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question