PHP not displaying errors even though display_errors = On

前端 未结 17 1748
面向向阳花
面向向阳花 2020-12-13 01:31

I have a Ubuntu server running Apache2 with PHP 5. In the php.ini I set display_errors = On and error_reporting = E_ALL | E_STRICT, but PHP is st

17条回答
  •  被撕碎了的回忆
    2020-12-13 02:12

    When running PHP on windows with ISS there are some configuration settings in ISS that need to be set to prevent generic default pages from being shown.

    1) Double click on FastCGISettings, click on PHP then Edit. Set StandardErrorMode to ReturnStdErrLn500.

    StandardErrorMode

    2) Go the the site, double click on the Error Pages, click on the 500 status, click Edit Feature Settings, Change Error Responses to Detailed Errors, click ok

    Change Error Responses to Detailed Errors

提交回复
热议问题