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

Enable AllowOverride

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

Add Flash Chat to your Website

We ran into this website recently which allows you to easily insert a flash chat room into your...

Inode issues

There are many issues that can arise from reaching your inode limit. The inode limit is the total...

301 Redirect

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

https:// with Weebly

To enable and force https:// with your Weebly website, be sure to go into your editor area,...