How to fix 500 Internal Server Error for PHP 7.4 with IIS on Windows Server?

You might see the below error while you install PHP 7.4 on the windows server with IIS and run any of the PHP pages. 

     


     php-error

     While we run the php-m command in the command prompt, it has given the below warning. 

PHP Warning: ‘vcruntime140.dll’ 14.0 is not compatible with this PHP build linked with 14.16 in Unknown on line 0As per the warning we need to upgrade the Visual C++ runtime to the latest version. Here, we will upgrade it to Visual ++ 2015-2019. You need to install it as per your system require whether it is x64 or x86.

     As per the warning we need to upgrade the Visual C++ runtime to the latest version. Here, we will upgrade it to Visual ++ 2015-  2019. You need to install it as per your system require whether it is x64 or x86.

Download Visual Studio C++ > Redist.64.exe

Download Visual Studio C++ > Redist.86.exe

     You can install it both if you face the issue by installing anyone. 500 Internal error shouldn’t occur again.

Related Articles

How to fix Schannel error 36874?

You may find this error in Windows Server 2008, Windows Server 2008 R2, Windows Server 2012,...

How to find the folders that are using high disk space in the windows server?

If you are using a Windows machine, you may require to check disk space usage at some times....

How to change the country/region, language and date and time format on Windows server 2016?

It is easy to make regional changes on Windows server 2016. Here we have mentioned all the steps...

How to Change RDP Screen Resolution on Windows server or VPS?

You may need to change your remote server or VPS screen resolution while connecting it using RDP....

Is it possible to take complete VPS backup in VPS itself?

Please note that, there is no provision to take backup of full VPS image in VPS itself. As an...

  • 0 Users Found This Useful

Was this answer helpful?