Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

mazinoukah's avatar

cron job not working

i am hosting my laravel application with namecheap, i have also followed all the instructions here https://www.namecheap.com/support/knowledgebase/article.aspx/9453/29/how-to-run-scripts-via-cron-jobs . however after setting my cron job in the cron job tab of cpanel, i get notifications in my email but the artisan command does'nt seem to be executed as my database remains the same. i tried to echo out a value in the artisan command's handle method for testing purposes but then nothing gets output and i still get notifications in my email like so => 'Running scheduled command: '/opt/alt/php70/usr/bin/php' 'artisan' deactivate:ads > '/home/agrodqkc/applications/agroexpresslink/app/console/log.txt' 2>&1 &'

This is my cron command for every minute => /usr/local/bin/php /home/agrodqkc/applications/agroexpresslink/artisan schedule:run

0 likes
0 replies

Please or to participate in this conversation.