Page 1 of 1

log username in Apache access log

Posted: 10 May 2022, 15:07
by mrachilli
Hello,
is there a simple way to add the username to the Apache access log. I have a rough idea how do achieve so in PHP but do not have sufficient knowledge of the best way to implement in in Mantis.

Thanks, Martin

Re: log username in Apache access log

Posted: 10 May 2022, 15:54
by atrol
Might help some way, never tried myself: https://serverfault.com/questions/96200 ... om-php-fpm

Re: log username in Apache access log

Posted: 08 Feb 2023, 12:06
by mrachilli
I had followed these instructions some time ago on another PHP project but it was a bit easier to fiure out where to insert the apache_note directive.
Could you please tell me in which file it is best to put it to provide Apache with the username?

Thanks.