Cannot get php display_errors enabled

前端 未结 8 1470
谎友^
谎友^ 2020-12-29 08:49

Hey i know there are a few posts regarding this topic and i have scoured them all!

I cannot not enable the display_errors setting in php no matter what i do!!!

8条回答
  •  一向
    一向 (楼主)
    2020-12-29 09:25

    Per display_errors:

    Although display_errors may be set at runtime (with ini_set()), it won't have any effect if the script has fatal errors. This is because the desired runtime action does not get executed.

    so if you are dealing with problem not displaying errors and you may have syntax errors in your scripts, setting displaying errors by ini_set will not help, this requires changes in php.ini

    sudo sed -i 's/display_errors = Off/display_errors = On/' /etc/php5/apache2/php.ini
    

提交回复
热议问题