Logging not working
Posted: 26 Mar 2022, 13:31
Hi Everone,
I have mantis 2.25.2 schema ver 211 php ver 7.4.28 MariaDB 5.5.68
Site is reached via proxy server.
When trying to have logs about email sending, I get the following error in httpd error_log:
[client PROXY-IP:54370] MantisBT - The file specified in $g_log_destination "/var/www/cap_bugtracker/log/mantis.log" is not writable
I've moved the file under /var/www so it could be reached externally as well.
Access rights: -rwxrwxr-x
apache is the owner of the path and files.
The log configuration is the following:
$g_log_level = LOG_EMAIL_RECIPIENT;
$g_log_destination = 'file:/var/www/cap_bugtracker/log/mantis.log';
I've tried to use format $g_log_level = 'LOG_EMAIL_RECIPIENT'; but in this case httpd error_log is not getting populated at all.
Since the error_log entry starts with the IP of the proxy, is it a valid assumption from my end that the logging is attempted on the proxy server and of course the path is inaccessible via the local path?
Can you help me please with this?
Thank you in advance!
I have mantis 2.25.2 schema ver 211 php ver 7.4.28 MariaDB 5.5.68
Site is reached via proxy server.
When trying to have logs about email sending, I get the following error in httpd error_log:
[client PROXY-IP:54370] MantisBT - The file specified in $g_log_destination "/var/www/cap_bugtracker/log/mantis.log" is not writable
I've moved the file under /var/www so it could be reached externally as well.
Access rights: -rwxrwxr-x
apache is the owner of the path and files.
The log configuration is the following:
$g_log_level = LOG_EMAIL_RECIPIENT;
$g_log_destination = 'file:/var/www/cap_bugtracker/log/mantis.log';
I've tried to use format $g_log_level = 'LOG_EMAIL_RECIPIENT'; but in this case httpd error_log is not getting populated at all.
Since the error_log entry starts with the IP of the proxy, is it a valid assumption from my end that the logging is attempted on the proxy server and of course the path is inaccessible via the local path?
Can you help me please with this?
Thank you in advance!