Disable error_log via htaccess

Prevent public display of PHP errors via htaccess

# supress php errors
php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors off
php_value docref_root 0
php_value docref_ext 0

Disable (log) your site’s PHP errors via htaccess

php_flag  log_errors off

  • 136 Users Found This Useful

Was this answer helpful?

Related Articles

Error 401 Unauthorized

This can occur when a web page requires authorization or a login to view the contents. If none...

View your website in older browser versions

As developers and webmasters it is always important to make sure your website works in several...

Set CORS header to Allow Access for any Incoming Domain

The following may be used to set to always set the CORS header for any incoming domains without...

Do you have a firewall?

Yes, our servers have firewalls. For security we close off unused ports and update the server...

Show longer file names in directory/folder index

If you've ever wanted to show longer file names in your directory listing just create or edit an...