限时促销 - 低至 4.75CNH/月
00
10
51
21
立即开始
×

知识库

查找有关信息功能,故障排除指南,
以及与虚拟主机相关的其他技术信息的文章。

How to enable error_log.txt logging over .htaccess file

引用:
error log error_log.txt error_log

To start logging your PHP errors to an error_log file instead of the .logs folder, add the following lines to your .htaccess file:
# log PHP errors to a file
php_flag log_errors on
php_value error_reporting 32767
php_value error_log "error_log.txt"

IMPORTANT: Make sure to make a backup of your previous .htaccess file before making any changes to as incorrect settings can make your website inaccessible. 

  • 简单易用的建站助手
  • 99.9%在线时间保证
  • 24/7 在线支持
  • Powerful Control Panel
  • 30天退款保证
限时优惠促销!
低至
4
75
CNH
/月
节省 90%
立即开始