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

What is the location of curl?

Curl is located @ /usr/bin/curl

Can you write a script for me?

We do not write scripts but will be more than happy to guide you in the right direction. Most the...

Heartbleed Vulnerablity, Risk and Fix

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

How can I change the index listing in a directory?

You can change the initial page that is sent to client requests when a directory is accessed by...

How can I redirect http to https?

Create an .htaccess file with the following contents and upload it to your public_html directory....