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

LaraBABA's avatar

For everyone else, if you are using Cpanel, the correct way to setup a cron in Laravel is like this: My laravel main folder is below the public_html folder in this case.

/usr/bin/php /home/your_account_name/laravel/artisan schedule:run

You should receive by email:

Running scheduled command: '/opt/cpanel/ea-php73/root/usr/bin/php' 'artisan' clean:directories > '/dev/null' 2>&1
Content-type: text/html; charset=UTF-8

Use this to stop receiving emails:

/usr/bin/php /home/your_account_name/laravel/artisan schedule:run >> /dev/null 2>&1

If you use:

php /home/your_account_name/laravel/artisan schedule:run

You will get "No scheduled commands are ready to run"

Hope it helps.

dust's avatar

@mwspacellc , have you found a solution for your problem? I'm having the same and I don't know how to solve it.

1 like
Aleinik's avatar

@mwspacellc @dust How was this problem solved? I have the same problem.

UPDATE: I called Artisan :: call ('view: clear'); in my service provider AppServiceProvider.php in the boot method.

boyjarv's avatar

Argh, I am having this same issue?! - can anyone help?

boyjarv's avatar

Seems not to work for daily() I changed back to everyMinute() and it worked

Snapey's avatar

@boyjarv daily() runs only at 00:00 according to the timezone of your application, stored in config/app.php

If (for instance) your system is running in UTC then the daily() will only execute at 00:00UTC

devoracle's avatar

I had the same problem but adding the ->evenInMaintenanceMode() method to my command and PHP artisan cache: clear after that fixed the issue perfectly.

Previous

Please or to participate in this conversation.