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 perl modules are installed on the server?

You can get a complete list of the modules that are installed by going to the control panel and...

What are some tools are available to optimize my website?

There are many great tools to optimize your website. There is an optimize tool in your hosting...

301 Redirect

This code will redirect all visitors who attempt to access the old-url.html page to the...

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...

I need a module installed but I do not have rights

No problem. Send us a trouble ticket and we will install the module as long as there are no...