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

  • 132 Users Found This Useful

Was this answer helpful?

Related Articles

When I type in my domain it goes to ultrawebhosting.com.

You may have the IP cached of the previous server on your system. Try a reboot. If you run WinNT,...

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

SSL - Creating a CSR in Windows 2003

Creating the CSR IIS Windows 2003 or 2000 Server: From Administrative Tools, run the Internet...

My index page does not load. Why not?

Filenames are case sensitive. Be sure you have an index filename all in lower case. Examples are...

Prevent CloudFlare from Loading a .js or Script

Sometimes CloudFlare / Rocket Loader can have problems with a script and hose it up. To have...