Following the steps on this page I created a cronjob to launch /usr/bin/php5 /var/www/glpi/front/cron.php, however on CentOS7 with php-5.6 there is no php5. Removing the 5 from the command yields another error:
# /usr/bin/php /var/www/glpi/front/cron.phpCould not open input file: /var/www/glpi/front/cron.php
I think we want this instead:
* * * * * /usr/bin/php /usr/share/glpi/front/cron.php
Note I omit the redirect to dev/null so future errors will be emailed to the admin rather than failing silently.
We can't put doc for each linux distribution and php bin name file and folders where GLPI installed, it say how use it and so you may modify if required ;)
Following the steps on this page I created a cronjob to launch
/usr/bin/php5 /var/www/glpi/front/cron.php
, however on CentOS7 with php-5.6 there is nophp5
. Removing the5
from the command yields another error:# /usr/bin/php /var/www/glpi/front/cron.php
Could not open input file: /var/www/glpi/front/cron.php
I think we want this instead:
* * * * * /usr/bin/php /usr/share/glpi/front/cron.php
Note I omit the redirect to dev/null so future errors will be emailed to the admin rather than failing silently.