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

Common Search Engine Optimization Tips

Get other websites to link to you. Have your website linked and posted in socal media...

How can I change the default page / document?

Create a .htaccess file, include the below information into it and upload it to the public_html...

htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable

To solve “.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable” follow...

Some visitors in China and Russia cannot reach my website

Some networks known for abusive activity such as hacking in countries such as China, North Korea...

Do you support TeamSpeak?

We do not support Teamspeak on our servers but allow you to create a subdomain such as...