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

Updating an Old Docker Version to Community Edition

The following was used to upgrade an antiquated version of docker to the newest community edition...

How do I cancel my account?

We are sorry to hear you would like to cancel your account! If there is anything we can do,...

My site was hacked

This typically occurs when you are running a script/app on your website which is out-dated and...

403 Error on POST

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

Error 404 - File Not Found

Files are case sensitive. Make sure you are typing the address in correctly. Verify that the...