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

Can I purchase additional RAM, Disk space and Bandwidth for VPS?

Yes, you can purchase additional RAM(Our RAM Recommendation), DiskSpace, Bandwidth and vCPU...

Do you have any limits for setting up Cron jobs or schedule tasks?

Windows Shared Hosting Plans:We do not offer cron jobs in Windows shared hosting plans. Linux...

How to create Remote Desktop Users in Windows 2012 R2?

Please refer to the following steps to create Remote Desktop User in Windows 2012 R2. Login to...

Can I Host Unlimited Websites with Different Domains in Windows or Linux VPS hosting?

There is no restriction on the total number of hosted domains on Windows VPS and Linux VPS...

How to install updates on Windows 2012 R2?

Windows Update is a service of Microsoft which helps your operating system to stay updated. It...

  • 0 Users Found This Useful

Was this answer helpful?