You are not logged in.
Pages: 1
Description:
I am currently using Ubuntu with GLPI version 10.0.6. I have set up a cron job based on the documentation provided at documentation.fusioninventory.org/FusionInventory_for_GLPI/cron/. The cron job settings I used are as follows:
* * * * * cd /var/www/glpi/front/ && /usr/bin/php cron.php &>/dev/null
However, none of my tasks are functioning, and I am receiving a warning indicating that the cron job is not running properly.
Steps to Reproduce:
Install and configure GLPI version 10.0.6 on Ubuntu.
Set up the cron job with the provided command: * * * * * cd /var/www/glpi/front/ && /usr/bin/php cron.php &>/dev/null.
Observe the cron tasks not executing and the warning message.
Offline
Depending on where you put the cronjob, maybe you forget to add the user , like:
*/5 * * * * root /usr/bin/php /var/www/glpi/front/cron.php &> /dev/null
(i can suggest you to make cronjob every 5 mins)
Did u tryed with
/usr/bin/php /var/www/glpi/front/cron.php &> /dev/null
inside console and check if it work?
Offline
Hi
Try with
* * * * * www-data cd /var/www/html/glpi/front/ && php cron.php > /dev/null
--
GLPI 10.0.17
GLPI-Inventory 1.4.0
Ubuntu Server 20.04 LTS
Offline
Hi,
my first line in crontab is
MAILTO=""
After that it worked for me.
Debian 11.7 - PHP 7.4.33 - MariaDB 10.5.19 - 10.0.8-dev
Offline
Thank you so much for your assistance! I realized that I made a mistake when setting up the cron job. I had only copied the setup from the documentation but forgot to include the /html/ directory in the command. I really appreciate your help in identifying the issue. I will update the cron job command accordingly and test it again. Thank you once again for pointing out the oversight!
Offline
Pages: 1