Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

When attempting to run a PHP file on Windows server 2012 and IIS, I keep getting a 500 error. I cannot find any detaild logs or anything. However, when going to PHP Manager for IIS and click check config, i get the following error:

Detailed Error Information:
Module    FastCgiModule 
Notification    ExecuteRequestHandler 
Handler    PHP55_via_FastCGI 
Error Code    0xc0000135 
Requested URL    http://domain.com:80/brkld3ip.php 
Physical Path    drive:\sites\domain.com\brkld3ip.php 
Logon Method    Anonymous 
Logon User    Anonymous 

I installed PHP using Microsoft Web Platform Installer 5.0 on a fresh install of Windows Server.

I am new to IIS coming from Linux. So I am not "learned" enough in IIS to know whats going on. I have tried updating C++ redistributable 2012 update 4 as a couple websites suggest. Anybody have any other ideas? Thanks!

EDIT: Another thing I checked was memory limit. One site suggested my memory limit needed to be upped. No change.

Edit: Question.. Does Windows have to be rebooted for PHP changes to take effect?

share|improve this question
    
Which version of PHP? –  Kev Jul 20 at 5:22
    
Well when i installed php 5.5 with that Microsoft installer it also installed 5.3. –  alexander7567 Jul 20 at 12:47

1 Answer 1

up vote 1 down vote accepted

There's a fairly good chance you're missing the correct VC++ runtime for the version of PHP you're running.

If you're running PHP 5.5.x you need to ensure the VC++11 runtime is installed:

http://www.microsoft.com/en-us/download/details.aspx?id=30679

Make sure you download and install the x86 version (vcredist_x86.exe), PHP on Windows isn't 64 bit yet.

If you're running PHP 5.4.x then you need to install the VC++9 runtime:

http://www.microsoft.com/en-us/download/details.aspx?id=5582

share|improve this answer
    
You was correct. I already did the x64 since it was a 64 bit machine. Installed the x86 and instantly (no reboot required) it started working. Thanks! I racked my brain for hours! –  alexander7567 Jul 20 at 13:04

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.