PHP not displaying errors even though display_errors = On

前端 未结 17 1678
面向向阳花
面向向阳花 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:27

    When you update the configuration in the php.ini file, you might have to restart apache. Try running apachectl restart or apache2ctl restart, or something like that.

    Also, in you ini file, make sure you have display_errors = on, but only in a development environment, never in a production machine.

    Also, the strictest error reporting is exactly what you have cited, E_ALL | E_STRICT. You can find more information on error levels at the php docs.

提交回复
热议问题