mantisbt 2.5.0
apache 2.4.6
centos 7
How do I log what is going on in 2.5.0 ? I only want to see what is happening to dry and debug my other issue regarding 32MB up-loads!
From this page
https://www.mantisbt.org/docs/master/en ... gging.html
in config_inc.php I set
$g_log_level = 'LOG_DATABASE';
$g_log_destination = 'file:/tmp/mantisbt.log'
I also
touch /tmp/mantisbt.log
chmod 777 /tmp/mantisbt.log
then restart httpd. Nothing showing adversely in the apache logs
But when I try and load the site... it doesn't error... but I just get a black page.
so obviously that isn't "correct".
*sigh*
any ideas? please?
cheers
ian
logging
Moderators: Developer, Contributor
Re: logging
I dunno if we're facing the same issues, but I've written the following notes for myself when setting up a site:
Any help?Change SELinux security context on folder or file for use with Apache:
chcon -R -v -t httpd_sys_rw_content_t the_name
Files need to be accessible to Apache:
chgrp apache index.htm
chgrp -R apache foldername/
Owner should not be a user:
chown -R root foldername
Re: logging
Should bedidds wrote: $g_log_level = 'LOG_DATABASE';
Code: Select all
$g_log_level = LOG_DATABASE;
Re: logging
cheers both - no change
# ls -l /tmp/mantisbt.log
-rwxrwxrwx 1 root root 0 Jan 5 15:17 /tmp/mantisbt.log
# ps -ef | grep http
root 5841 1 3 13:14 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 5843 5841 0 13:14 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 5844 5841 0 13:14 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 5845 5841 0 13:14 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 5846 5841 0 13:14 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 5847 5841 0 13:14 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 5848 5841 0 13:14 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 5849 5841 0 13:14 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 5850 5841 0 13:14 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
$g_log_destination = 'file:/tmp/mantisbt.log';
$g_log_level = LOG_DATABASE;
and /tmp/mantisbt.log is just empty
site still fails to load - but does not error
BUT Aha!
I set the apache log_level to debnug and restarted apache. Nothing obvious showing in the logs
but then I reloaded the page ... and I get this
PHP Fatal error: Call to undefined function mb_internal_encoding() in /var/www/html/core/database_api.php on line 1290
I haven't edited that file at all. That line FTR is
$t_utf8_offset = utf8_strlen( substr( $p_query, 0, $t_match_param[1] ), mb_internal_encoding() );
ian
# ls -l /tmp/mantisbt.log
-rwxrwxrwx 1 root root 0 Jan 5 15:17 /tmp/mantisbt.log
# ps -ef | grep http
root 5841 1 3 13:14 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 5843 5841 0 13:14 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 5844 5841 0 13:14 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 5845 5841 0 13:14 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 5846 5841 0 13:14 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 5847 5841 0 13:14 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 5848 5841 0 13:14 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 5849 5841 0 13:14 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 5850 5841 0 13:14 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
$g_log_destination = 'file:/tmp/mantisbt.log';
$g_log_level = LOG_DATABASE;
and /tmp/mantisbt.log is just empty
site still fails to load - but does not error
BUT Aha!
I set the apache log_level to debnug and restarted apache. Nothing obvious showing in the logs
but then I reloaded the page ... and I get this
PHP Fatal error: Call to undefined function mb_internal_encoding() in /var/www/html/core/database_api.php on line 1290
I haven't edited that file at all. That line FTR is
$t_utf8_offset = utf8_strlen( substr( $p_query, 0, $t_match_param[1] ), mb_internal_encoding() );
ian
Last edited by didds on 08 Jan 2018, 13:34, edited 1 time in total.
Re: logging
Should bedidds wrote: $g_log_destination = 'file:/tmp/mantisbt.log'
Code: Select all
$g_log_destination = 'file:/tmp/mantisbt.log';
Re: logging
atrol wrote:Should bedidds wrote: $g_log_destination = 'file:/tmp/mantisbt.log'Code: Select all
$g_log_destination = 'file:/tmp/mantisbt.log';
yup - sorted that just before you posted - but thanks.
Ive now got this mbstring error,
PHP Fatal error: Call to undefined function mb_internal_encoding() in /var/www/html/core/database_api.php on line 1290
but I can't install php-mbstring as ...
]# yum install php-mbstring
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package php-mbstring.x86_64 0:5.4.16-43.el7_4 will be installed
--> Processing Dependency: php-common(x86-64) = 5.4.16-43.el7_4 for package: php-mbstring-5.4.16-43.el7_4.x86_64
--> Finished Dependency Resolution
Error: Package: php-mbstring-5.4.16-43.el7_4.x86_64 (updates)
Requires: php-common(x86-64) = 5.4.16-43.el7_4
Installed: php-common-5.4.45-56.el7.art.x86_64 (@ossec)
php-common(x86-64) = 5.4.45-56.el7.art
Available: php-common-5.4.16-42.el7.x86_64 (centos)
php-common(x86-64) = 5.4.16-42.el7
Available: php-common-5.4.16-43.el7_4.x86_64 (updates)
php-common(x86-64) = 5.4.16-43.el7_4
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[root@issvlmant04 logs]#
I'm bored of this now. I only want logging to work so i can better investigate my far more important issue -
http://mantisbt.org/forums/viewtopic.php?f=3&t=25233
*sigh*
ian
Re: logging
mbstring extension is needed for database logging, see https://www.mantisbt.org/bugs/view.php?id=15575
Independend of that,
- it's recommend to use mbstring, because of better performance
- it's documented as a mandatory extension and mbstring might be enforced in future versions, see https://www.mantisbt.org/bugs/view.php?id=23214
BTW, PHP 5.4 version is not supported with latest Mantis version, you will have to use at least PHP 5.5 see https://www.mantisbt.org/bugs/view.php?id=23378
https://www.mantisbt.org/docs/master/en ... e.versions
Independend of that,
- it's recommend to use mbstring, because of better performance
- it's documented as a mandatory extension and mbstring might be enforced in future versions, see https://www.mantisbt.org/bugs/view.php?id=23214
BTW, PHP 5.4 version is not supported with latest Mantis version, you will have to use at least PHP 5.5 see https://www.mantisbt.org/bugs/view.php?id=23378
https://www.mantisbt.org/docs/master/en ... e.versions