Tuesday, October 05, 2021

Re: httpd(8) and PHP - more details in error log

On 10/4/21 11:45 PM, openbsd.list@krottmayer.com wrote:
> Hi,
>
> I use PHP on OpenBSD's HTTPD for my private web page. In the default
> configuration it's hard
> to debug an PHP error, because I don't see a time or the specific
> request on which the
> error occurred.
>
> Is there a configuration for PHP or HTTPD to print more details in the
> error log?
>
> Thanks in advance!
>

You can send httpd logs to syslog by setting

log syslog

This will log the timestamps, but still not IP addresses in the error
log. See:

https://www.mail-archive.com/bugs@openbsd.org/msg15344.html

Paul

No comments:

Post a Comment