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

In Classic Windows VPS plan, do we get latest version of SQL and Visual Studio installed? Also do we get latest .Net framework?

While placing an order, you will get an option to select SQL server version and its edition....

How to Install Telnet Client in Window and Linux?

Telnet Client allows you to connect to remote and local computers via Telnet protocol. Telnet...

How to install Ioncube loader for Windows?

Following are the steps to add the Ioncube for PHP 7. Login to VPS. Download the Windows VC14...

I am unable to connect to my Windows VPS through RDP.

There could be plenty of reasons for not being able to connect to Windows VPS via Remote Desktop....

How to Create & Manage VPS under your Windows VPS reseller Plan?

If you're purchasing a 10 GB of RAM VPS plan, you can create 10 VMs with 1 GB RAM each or 5 VMs...

  • 0 Users Found This Useful

Was this answer helpful?