Php error log missing in XAMPP

php.ini contains the following parameters:

track_errors=On
error_reporting=E_ALL & ~E_DEPRECATED & ~E_STRICT
log_errors=On
error_log="C:\xampp\php\logs\php_error_log"

but the "logs" folder is missing in this path. Its not even a hidden folder. where to find php error logs?

OS:windows 8.1
php version 5.6.24
+4
source share
2 answers

I solved the problem (I had the same problem as you).

Somwhy php systhem will not create the "logs" folder on its own. So, I use the following:

1) I created the "logs" folder in the right place

2) I restarted the application using xampp controlpannel (stop and start).

3) and created a fatal error using

trigger_error("Some info",E_USER_ERROR);

Then the log file was created by php and worked again.

Hope this helps you.

+7
source
0

Source: https://habr.com/ru/post/1674173/


All Articles