简体   繁体   中英

Setting display_error PHP configuration in .htaccess

I'm trying to disable display_errors from .htaccess , but if I just paste this into the .htaccess file, the entire site crashes:

php_flag display_errors off
php_flag log_errors on

This only works if php is compiled as apache module and you have privileges to change those.

If you are using php >= 5.3, there is better solution: create .user.ini file in your document root and use normal ini syntax to customize your config.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM