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

403 Error on POST

This can occur for several reasons: Be sure your file permissions are correct. If the file needs...

Enable AllowOverride

If you have an application that requires allowoverride enabled, create an .htaccess file and...

When I upload an htaccess file it disappears

On unix/linux systems, files that start with a . are considered hidden so many ftp programs do...

Troubleshooting Cloudflare errors

You may encounter errors using CloudFlare from time to time. This article may help to resolve...

Why can I not ping my domain?

For security purposes we have closed off the ICMP port which is used for ping.