Crontab mail error

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
vahks
Posts: 4
Joined: 14 Feb 2020, 13:59

Crontab mail error

Post 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
Last edited by vahks on 13 Mar 2020, 10:51, edited 2 times in total.
cas
Posts: 1586
Joined: 11 Mar 2006, 16:08
Contact:

Re: Crontab mail error

Post by cas »

What version do you run.
I have 2.21.1 and do not have the string in config_defaults_inc.php.
vahks
Posts: 4
Joined: 14 Feb 2020, 13:59

Re: Crontab mail error

Post 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
Post Reply