Xampp PHP never creates error log file (php_error_log)

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Xampp PHP never creates error log file (php_error_log)

Postby luksl » 06. June 2017 18:23

I need to see/log PHP errors. I always run Xampp as administrator. My PHP never logs errors in a file. Even the folder "logs" is missing in the PHP folder. No matter of Xampp version I use (I tried also the newest one - 7.014).

phpinfo:

display_errors On
display_startup_errors On
html_errors On
log_errors On
error_reporting 32767
error_log D:\Dev\xampp7013\php\logs\php_error_log

What is wrong? Do I have to set up something more on?
luksl
 
Posts: 2
Joined: 06. June 2017 17:56
XAMPP version: 7.140
Operating System: Windows 10

Re: Xampp PHP never creates error log file (php_error_log)

Postby Altrea » 06. June 2017 19:11

You might create the folder logs if it is missing.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8883
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: Xampp PHP never creates error log file (php_error_log)

Postby luksl » 06. June 2017 19:24

I had created the folder logs and also the php_errors_log file but the file remained empty. It seems my Xampp/PHP will not output log data for some reason. :-(
luksl
 
Posts: 2
Joined: 06. June 2017 17:56
XAMPP version: 7.140
Operating System: Windows 10

Re: Xampp PHP never creates error log file (php_error_log)

Postby jprestonsoap » 23. June 2017 09:49

I have the same problem, with both XAMPP 7.1.6-0 and 7.0.9-1.

I have ensured that the folder exists, and that the log_errors directive is set in php.ini, and I have tried using various values for the error_log directive, without success: I cannot get PHP to log errors.

Any suggestions appreciated.
jprestonsoap
 
Posts: 2
Joined: 23. June 2017 09:46
XAMPP version: 7.1.6-0
Operating System: Windows 10

Re: Xampp PHP never creates error log file (php_error_log)

Postby jprestonsoap » 23. June 2017 10:09

My mistake, there was some code doing an ini_set( 'error_log') to a read-only file...
jprestonsoap
 
Posts: 2
Joined: 23. June 2017 09:46
XAMPP version: 7.1.6-0
Operating System: Windows 10


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 76 guests