You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2019-11-07 14:39:53

viktor_sc
Guest
Registered: 2018-06-26
Posts: 6

Cron.php not running - Link to the SQL server could not be established

Hi,

I'm running GLPI 9.4.4 on my Synology NAS with web station. It runs fine and I can open the application in my browser without any issues.
Now, to be able to get notifications without logging in I understand that I have to run the cron.php from a scheduled job. To schedule the job is not an issue, but the job itself.
Whenever I run it from a scheduled job or manually in a command line I get this error:

Command:

/usr/local/bin/php73 /volume1/web/glpi/front/cron.php

Error:

A link to the SQL server could not be established. Please check your configuration.
Le serveur Mysql est inaccessible. Vérifiez votre configuration

The command should be correct as I use PHP 7.3.
Also, my config_db.php should be correct as I can open the application. It contains:

<?php
class DB extends DBmysql {
   public $dbhost     = 'localhost';
   public $dbuser     = 'XXXX';
   public $dbpassword = 'XXXX';
   public $dbdefault  = 'glpi';
}

Is there any place I need to configure the connection for the cron.php or something like this?

Thanks for any help,
Viktor

Offline

#2 2019-11-28 12:40:32

viktor_sc
Guest
Registered: 2018-06-26
Posts: 6

Re: Cron.php not running - Link to the SQL server could not be established

Hi,

does nobody have an idea?

thanks,

Offline

Board footer

Powered by FluxBB