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

Cross Origin Request Error

When receiving a cross-origin / cross original request, CORS header 'Access-Control-Allow-Origin'...

Error 508 / 503 - Resource Limit Reached

To help maintain the stability of servers and keep websites fast, UltraWebHosting has resource...

“Not Secure” Web Error

In this day and age browsers now default to using https:// instead of http://. We make SSL...

My index page does not load - Why not?

Filenames are case sensitive. Be sure you have an index filename all in lower case. Examples are...

How do I submit my site to search engines?

Submit your website to popular search engines to increase your webite's exposure and visitor...