HTTP Error 500.19 – Internal Server Error

HRESULT: 0x80070005

Description of HRESULT
The requested page cannot be accessed because the related configuration data for the page is invalid.

This error is particularly prevalent for newly installed servers because:

There’s a fairly good chance you’re missing the correct VC++ runtime for the version of PHP you’re running.

If you’re running PHP 5.5.x you need to ensure the VC++11 runtime is installed:

http://www.microsoft.com/en-us/download/details.aspx?id=30679

Make sure you download and install the x86 version (vcredist_x86.exe), PHP on Windows isn’t 64 bit yet.

If you’re running PHP 5.4.x then you need to install the VC++9 runtime:

http://www.microsoft.com/en-us/download/details.aspx?id=558

Many thanks to Sepehr for help with this.