You are not logged in.
Pages: 1
I upgraded glpi to version 10.0.7 after that Crontab works in Linux ubuntu but none of the automated tasks work. Notifications are not sent. automatic ticket closing does not work. So none of the automated processes are working. Where am I doing wrong can someone help?
Before GLPI: 10.0.5
Upgrated GLPI: 10.0.7
OS: Ubuntu 22.04.2 LTS
PHP: 8.2
Mysql: 8.0.33
Apache2: 2.4.52
GPLI Path: /var/www/html/glpi/
Crontab Content:
* * * * * /usr/bin/php /var/www/html/glpi/front/cron.php
* * * * * /usr/bin/php /var/www/html/glpi/front/cron.php --debug
* * * * * php GLPI/front/cron.php
* * * * * php GLPI/front/cron.php --force mailgate
*/1 * * * * root cd /var/www/html/glpi/front/ && php cron.php
*/1 * * * * www-data cd /var/www/html/glpi/front/ && php cron.php
* * * * * apache /usr/bin/php /var/www/html/glpi/front/cron.php &>/dev/null
*/1 * * * * /usr/bin/php8.2 /usr/share/glpi/front/cron.php
Offline
Hi velidinc
I had similar problems with 9.5.x. Under ubuntu the path /usr/bin/php points to /etc/alternatives/php.
ls -la /usr/bin/php
lrwxrwxrwx 1 root root 21 May 10 11:12 /usr/bin/php -> /etc/alternatives/php
And sometimes it didn't work in the past. Now my crontab looks like this.
* * * * * cd /var/www/html/glpi/front/ && /usr/bin/php8.1 cron.php &>/dev/null
You could try this.
Best regards
Christian
Offline
Hi velidinc
I had similar problems with 9.5.x. Under ubuntu the path /usr/bin/php points to /etc/alternatives/php.
ls -la /usr/bin/php lrwxrwxrwx 1 root root 21 May 10 11:12 /usr/bin/php -> /etc/alternatives/php
And sometimes it didn't work in the past. Now my crontab looks like this.
* * * * * cd /var/www/html/glpi/front/ && /usr/bin/php8.1 cron.php &>/dev/null
You could try this.
Best regards
Christian
Hello Christian,
I added it but it doesn't work. Actually, some automatic processes work but some do not, I don't understand why.
the new crontab looks like this:
* * * * * /usr/bin/php /var/www/html/glpi/front/cron.php
* * * * * /usr/bin/php /var/www/html/glpi/front/cron.php --debug
* * * * * cd /var/www/html/glpi/front/ && /usr/bin/php8.2 cron.php &>/dev/null
The system is as follows:
Ubuntu 22.04.2 LTS
PHP 8.2.6 (cli)
mysql Ver 8.0.33
Apache/2.4.52
Offline
Pages: 1