erickbrito's avatar

Cron Jobs laravel does not work

I created an instance of the elastic beanstak from amazon AWS, and my laravel project inside it is located in the /var/www/html folder. I opened crontab with the following command - "EDITOR = nano crontab -e" and installed the command below - '* * * * * /usr/bin/php /var/www/html/artisan schedule: run 1>> / dev / null 2>&1'... But after that it still did not work .., simply cron does not work, Am I missing anything?

0 likes
10 replies
adamprickett's avatar

Can you check your system log to determine if the cron itself is actually firing? Also, check your PHP binary location with which php

1 like
erickbrito's avatar

Good morning adam,

"Can you check your system log to determine if the cron itself is actually firing?" - How can i do it?

adamprickett's avatar

Different Linux variations will have different system logs. Could you check for the file /var/log/syslog

1 like
erickbrito's avatar

In this folder there is yum.log, I do not know if it helps ...?

erickbrito's avatar

when I wrote the following command - "uname -a", the following version appeared ...

Linux ip-172-31-38-226 4.9.38-16.35.amzn1.x86_64 #1 SMP Sat Aug 5 01:39:35 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

adamprickett's avatar

Does /var/log/messages exist?

Also, just to check, the command you gave in your initial post has a space between schedule: and run Is this the same in your crontab? If so, there should not be a space here

1 like
erickbrito's avatar

Good morning,

"Does /var/log/messages exist?" - No, messages does not exist in this folder. And also does not have that space in my crontab, it was only when I gathered in the creation of the discussion.

erickbrito's avatar

Responding your question - "Does /var/log/messages exist?"... Yes, there is!

Please or to participate in this conversation.