Showing results for 
Search instead for 
Did you mean: 

Crontab and Magento 2

Crontab and Magento 2

Hi, im new in the Magento/linux world.


I follow all instruccion to install magento.

The only thing i can make work its the crontab.


When i put manualy

php bin/magento indexer:reindex

 work perfect.


But i try to creat crontab and not working

i put this in crontab


1 * * * * /usr/bin/php /var/www/html/magento/bin/magento cron:run | grep -v "Ran jobs by schedule" >> /var/www/html/magento/var/log/magento.cron.log
1 * * * * /usr/bin/php /var/www/html/magento/update/cron.php >> /var/www/html/magento/var/log/update.cron.log
1 * * * * /usr/bin/php /var/www/html/magento/bin/magento setup:cron:run >> /var/www/html/magento/var/log/setup.cron.log

my php folder and magento its right.



Sorry for my english


Re: Crontab and Magento 2

Hello LeandroA,

Share the magento's log when cron gets executed to debug further