Limited Time Offer - from Rs. 45.00/month
00
DAYS
22
HOURS
28
MINUTES
30
SECONDS
Get Started
×

Hostinger's Knowledge Base

Find articles and information about features, various troubleshooting guides,
and other technical information related to the Hostinger's services

How to enable error_log.txt logging over .htaccess file

Modified on:
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. 

  • Easy Website Builder
  • 99.9% Uptime Guarantee
  • 24/7 Live Support
  • Powerful Control Panel
  • 30-Days Money-Back Guarantee
Limited Time Special Offer!
From
Rs.
45
00
/mo
Save 90%
Get started