Page 1 of 1

Crontab mail error

Posted: 12 Mar 2020, 14:38
by vahks
Hello,

i would like to send mail via cron table. i have created this cronjob :

Code: Select all

5 9-18 * * 1-5 php /var/www/mantis/scripts/send_emails.php
I have configured a config_inc.php in the config directory, and mantis work perfectly, but i have this error in my log for the cronjob :

Code: Select all

APPLICATION ERROR #400: Database connection failed. Error received from database was #0: PHP Support for database is not enabled.
Someone can help me ?

Thanks

Re: Crontab mail error

Posted: 13 Mar 2020, 09:49
by cas
What version do you run.
I have 2.21.1 and do not have the string in config_defaults_inc.php.

Re: Crontab mail error

Posted: 13 Mar 2020, 10:45
by vahks
cas wrote: 13 Mar 2020, 09:49 What version do you run.
I have 2.21.1 and do not have the string in config_defaults_inc.php.
I have the latest version 2.23.0

I have solved my problem, the server use php 7.4 by default while mantis use php 7.0, and for php 7.4, mysql was not installed.
After install, the problem disappear .

Thanks