[resolved] glpi with virtualmin, configure cronjob

2 posts / 0 new
Last post
#1 Thu, 01/26/2017 - 08:08
Anywen

[resolved] glpi with virtualmin, configure cronjob

Hello,

We've recently switched our old glpi 0.85 who was running on a xampp windows to glpi 9.1.1 running on CentOS 7 + webmin/virtualmin. I've got a question about running the glpi cron.

On the glpi doc, they said to run this command */1 * * * * /usr/bin/php5 /var/www/monsite.com/glpi/front/cron.php &>/dev/null I've adapted it for my installation and got this * * * * * /usr/bin/php /home/mydomain/domains/glpi.mydomain.local/public_html/front/cron.php &>/dev/null

The cron is running as the webserver user (mydomain), the alert message have disappered from glpi, but I'm not sure that it's ran correctly, because some tasks like queuedmail say they are run every minute, but the mail stay in the queuedmail folder. If I click on Execute, the mail are send.

Can someone confirm me that my cron is running as it should or if I've set it not correctly ?

Thank you and have a nice day.

Thu, 01/26/2017 - 10:28
Anywen

Okay, so I've resolved my problem. My cronjob was okay, the problem was coming from the php timezone. I've set it to Zürich and now my cron is ran successfully !

Topic locked