How to enable PHP error logging with xampp?

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

How to enable PHP error logging with xampp?

Postby funkybabeluba » 03. June 2010 23:04

I understand that PHP error logging is off by default in xampp, right?
So I tried to turn it on by the following entries in C:\xampp\php\php.ini:

log_errors = On
error_log = "C:\xampp\apache\logs\php_error.log"

Restarted Apache, but nothing appears in the php_error.log file.

Any suggestions?

Regards,
Arne
funkybabeluba
 
Posts: 3
Joined: 03. June 2010 22:57

Re: How to enable PHP error logging with xampp?

Postby JonB » 04. June 2010 12:04

Hi

I hate to ask the obvious, but did you induce errors in some of your scripts? no errors - no log.

8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: How to enable PHP error logging with xampp?

Postby funkybabeluba » 04. June 2010 12:50

Yes I did. Errors appear on screen, but not in the log file.
I also tried to set display_errors = Off, and the errors where not displayed on the screen, as expected (so I'm using the correct php.ini file).
BTW, the error file has write permissions for all users, so that's not the problem either.
I also tried double backslashes for the file path, but it didn't help.

I'm using Windows Vista and the lastest xampp version.

JonB wrote:Hi

I hate to ask the obvious, but did you induce errors in some of your scripts? no errors - no log.

8)
funkybabeluba
 
Posts: 3
Joined: 03. June 2010 22:57

Re: How to enable PHP error logging with xampp?

Postby JonB » 04. June 2010 13:24

Hmmmm

I tested my settings and it all worked to plan. LOL, I didn't have to induce errors, I had a new script to try to get working! :lol:

Originally I thought whether vhosts were involved might bear on it, but it doesn't seem to.

I'm stumped at the moment.

:shock:
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: How to enable PHP error logging with xampp? - SOLVED

Postby funkybabeluba » 04. June 2010 14:10

I reinstalled xampp as administrator, and then the log file appeared as expected. :) :)

Thanks for your efforts anyway! :)

Arne
funkybabeluba
 
Posts: 3
Joined: 03. June 2010 22:57

Re: How to enable PHP error logging with xampp?

Postby Altrea » 04. June 2010 21:36

I just wanted to quote MC10, who said the following in thread http://community.apachefriends.org/f/viewtopic.php?t=40718
MC10 wrote:Actually, you don't need to run the install script as Administrator. It works fine even if you don't.


Maybe he can explain you, what went wrong the first time.

P.S.: Never mind, I was being a little sarcastic :mrgreen:
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: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 147 guests