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

  • 134 Users Found This Useful

Was this answer helpful?

Related Articles

When should I use ascii and when should I use binary?

Many FTP client programs support and auto mode to detect the proper upload type based on file...

Password Protect Directories

Within control panel select Password Protection. Select the directory you would like to protect....

My site was hacked

This typically occurs when you are running a script/app on your website which is out-dated and...

“Not Secure” Web Error

In this day and age browsers now default to using https:// instead of http://. We make SSL...

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