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.

  • 0 Users Found This Useful

Was this answer helpful?

Related Articles

Why do my email receipients receive (?????) question marks when I send emails using Arabic text?

Sometimes, emails sent through the SmarterMail containing Arabic texts, show the question marks...

Schedule automatic Windows updates on specific date on Windows 2012 R2.

Microsoft releases Windows updates at regular intervals. Installing Windows updates on your...

How to redirect website from HTTP to https in IIS?

If we install the SSL Certificate on a website, it is required to redirect the website from HTTP...

Can I upgrade my VPS plan without losing any data or settings?

Yes, you can upgrade your existing VPS to higher plan anytime. Your data will remain intact. We...

What is the database connection string for my website?

It is recommended that you take the help of your web developer to define the database connection...