PHP not displaying errors even though display_errors = On

前端 未结 17 1737
面向向阳花
面向向阳花 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条回答
  •  旧时难觅i
    2020-12-13 02:32

    I have encountered also the problem. Finally I found the solution. I am using UBUNTU 16.04 LTS.

    1) Open the /ect/php/7.0/apache2/php.ini file (under the /etc/php one might have different version of PHP but apache2/php.ini will be under the version file), find ERROR HANDLING AND LOGGING section and set the following value {display_error = On, error_reporting = E_ALL}.

    NOTE - Under the QUICK REFERENCE section also one can find these values directives but don't change there just change in Section I told.

    2) Restart Apache server sudo systemctl restart apache2

提交回复
热议问题