How to disable php error reporting

Post Reply
a24uall
Site Admin
Posts: 166
Joined: Sun Jul 01, 2012 9:07 am

How to disable php error reporting

Post by a24uall »

You can do this via php.ini
error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED
display_errors = On
log_errors = Off
Restart httpd and see if there are any errors visible
If you still see the errors, do change
display_errors = Off
Restart httpd again
/etc/init.d/httpd restart
Arun
WebhostingDevelopment.com
Post Reply

Return to “PHP Errors”