I have problem with HTTP Error 500.0 - Internal Server Error

1.8k Views Asked by At

I have this error in Windows Server 2012 R2 Standard 64-Bit

HTTP Error 500.0 - Internal Server Error C:\Program Files (x86)\PHP\v7.4\php-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:\inetpub\wwwroot\index.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

There are 2 best solutions below

1
On

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.

0
On

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!