Search code examples
phpsyslog

syslog() calls failing to log anything in PHP


I have some PHP code that's calling syslog(). I have control over the server. No matter what combination of openlog(), closelog(), priority and facility I try it will not log to the syslog. Any idea why?

Thanks.


Solution

  • I had to mount the /dev/log device in the chroot jail that PHP was running under.