php error_log not work

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

php error_log not work

Postby wirasto » 13. July 2015 16:57

Try send text to log file from php script

Code: Select all
error_log('test');


But not append in error_log file. And then I change the location to apache error_log file

Code: Select all
; php.ini
error_log="/opt/lampp/logs/error_log"


Restart the service. But,, still nothing,,,
wirasto
 
Posts: 3
Joined: 05. July 2015 19:32
Location: Gorontalo
Operating System: Windows 7

Re: php error_log not work

Postby glitzi85 » 15. July 2015 22:50

Did you try another file? The apache error_log is probably locked by the apache process and thus not writable by the php process.
User avatar
glitzi85
 
Posts: 1920
Joined: 05. March 2004 23:26
Location: Dahoim

Re: php error_log not work

Postby wirasto » 17. July 2015 17:46

Ok, I tried and work. to /tmp/test.log file.
But why php can't write to his own default log file too??? I mean is /opt/lampp/logs/php_errors.log
wirasto
 
Posts: 3
Joined: 05. July 2015 19:32
Location: Gorontalo
Operating System: Windows 7


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 8 guests