logo

Black Friday
Sale

  •  99,9% Uptime
  •  Gratis SSL-certificaat
  •  24/7 Live Support
  •  30 Dagen Geld Terug Garantie
Begin Nu

Tot zeker

90

%

OFF

04
DAGEN
00
UREN
26
MINUTEN
24
SECONDEN
Black Friday Sale: Webhosting
Vanaf 0,80€ /Maand!
Zie Alle Aanbiedingen
×

Kennisbank

Vind artikelen over functies, probleemoplossingen,
en andere technische informatie over de Hostinger hostingdiensten.

How to enable error_log.txt logging over .htaccess file

Bijgewerkt op:
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.