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

Setting up Zend Framework

When setting up Zend Frameworks in your hosting account be sure to upload your frameworks folder...

My pages are updating/refreshing slowly

Refresh is immediate on the server. When a file is updated and uploaded it is there. If you are...

Redirect http to https and www

To forward a website to use both www. and https:// use the following in an .htaccess file:...

Enable AllowOverride

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

How do I parse html files as shtml?

Create an .htaccess file in the directory needed and add the following: AddHandler...