I have this error in Windows Server 2012 R2 Standard 64-Bit
HTTP Error 500.0 – Internal Server Error
C:Program Files (x86)PHPv7.4php-cgi.exe – The FastCGI process exited unexpectedly
Detailed Error Information:
Module FastCgiModule
Notification ExecuteRequestHandler
Handler php-7.4.13
Error Code 0xc0000135
Requested URL http://localhost:80/index.php
Physical Path C:inetpubwwwrootindex.php
Logon Method Anonymous
Logon User Anonymous
Works only with PHP Version 5.3.28
When I change the version in PHP manager I get this error, I also tested these versions v7.4, v7.3, v7.2. but still the same problem.
Can you help me
2
Answers
The first thing you need to check is whether you have the right Visual C++ runtime package installed in your PC. If not, download and install it right away.
Visual C++ Redistributable for Visual Studio 2015
Note: You need to install the C++ Redistributable for Visual Studio 20xx that matches its version according to your PHP Version.
So for me it turned out IIS was corrupted somehow. Reinstalled IIS and everything worked out fine.
When troubleshooting I realised:
error was intermittent,
changing PHP versions had no effect
random bugs like missing libraries would occur now and again.
Log files are of no use
Very painful to debug!