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

Heartbleed Vulnerablity, Risk and Fix

The Heartbleed bug (http://en.wikipedia.org/wiki/Heartbleed_bug) is a serious vulnerability which...

Default Nameservers

If you have signed up for an Ultra 1x, Ultra Unlimited, or Ultra Unlimited Pro plan the following...

Why does it show the Ultra Web Hosting home page when I go to my site?

There are several reasons for this. Ensure you do not have https at the beginning of your...

I can not move out of the / directory, why not?

For security reasons, you cannot move out of the root folder of your own domain.

What are all these htaccess files?

.htaccess files are used to perform certain rules such as displaying a 404.shtml file in replace...