How to configure PHP to display detailed errors instead of error 500 page?
问题 I have a PHP application deployed on my IIS hosting and I am always getting generic IIS "error 500" pages insteady of detailed error pages. I understand I need to modify some php.ini file (from this question). It seems that display_errors is set correctly: echo ini_get('display_errors'); outputs 1 . I have also tried setting display_errors and error_reporting in the function that causes the error (I know the particular function is the problem because I manually modified it). function