PHP not logging via syslog-ng
Hi all,
This is on ArchLinux Quote:
Having a problem with PHP on Apache and not being able to get logs out. My php.ini is logging to syslog: Code:
root ~ # grep '^error_log' /etc/php/php.ini Code:
root ~ # grep php /etc/syslog-ng.conf I have a test page on my webserver which should throw an error: root ~ # cat /home/fukawi2/public_html/test.php Code:
<?php When I access this page via my web browser, it prints "Moo", but no error is written to /var/log/php.log PHP is setup to log everything: Code:
root ~ # egrep '^error_reporting |^log_errors ' /etc/php/php.ini It actually seems to be a problem with PHP: Code:
root ~ # grep "^error_log" /etc/php/php.ini Code:
root ~ # cat /tmp/php.log |
1.
is there a second php installation or at least a second php.ini on board, maybe? So the one in /etc/php is not used in your case? 2. add another line to your test script. The missing ";" will cause an error in the next line, but not if standing alone... |
Seems my test script actually never generated an error in the first place - whoops :o
I changed my test script to this: Code:
<?php Thanks j-ray! :D |
All times are GMT -5. The time now is 11:39 PM. |