Q: How do I set set IIS, MS SQL server to display my PHP errors Currently, I am migrating my website from a local machine to Windows Server and a MySQL database to MSSQL. However, in order to do resolve the issues with the migration I would need to edit most of the PHP code and the server does no display my error correctly. It just categorizes them under the: 
`500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.`

What do I have to do in order to get proper error logs? 
Like: Warning: mysqli::__construct(): (HY000/2002): No connection could be made because the target machine actively refused it. in C:\whereveron on line 12

A: The quickest way to display all php errors and warnings is to add these lines at the top of your PHP code file:
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

For iis server below solution mighe help you
https://serverfault.com/a/19566
