The IIS web server, by default, will hide detailed error information to prevent exposing more information about your web application. Though, sometimes your web application throws a generic error, and you want to see the actual error to fix it. To enable detailed error information, you will have to modify your application's web.config file and set attributes through these steps -
- Locate the web.config file in the wwwroot directory of your web application; edit it with your choice of editor.
- Add the following entries to your web.config file to disable generic errors and save the file.
If these entries already exist, set their values as shown below -
<customErrors mode="Off" />
<httpErrors errorMode="Detailed" />
→ Looking to enable PHP error log for WordPress website?
Please refer to enable PHP error log for more details.
→ Looking to enable PHP error reporting?
Please refer to enable PHP error reporting for more details.