Help me with cronjob laravel cronjob on cyberpanel

ive tried to run cronjob in every way but still not working please help me

here is the command im using laravel php artisan schedule:run

what do you want cronjob do so we can help you ?

did you read this simple guide CronJob

thank you for the reply herei want to run a laravel command like this

cd /domain.com && php artisan schedule:run >> /dev/null 2>&1

but it wont work

Can you try

/usr/local/lsws/lshphpXX/bin/php /home/domain.com/public_html/artisan schedule:run >> /dev/null 2>&1

By the way I don’t exactly know how laravel works.

But if you run above command from CLI what happens?

Try following from cli

/usr/local/lsws/lshphpXX/bin/php /home/domain.com/public_html/artisan schedule:run

Note: replace XX with your PHP version like 74 or 80 etc.

Well as per docs this should work (Task Scheduling - Laravel - The PHP Framework For Web Artisans)

cd /home/domain.com/public_html && /usr/local/lsws/lshphpXX/bin/php artisan schedule:run >> /dev/null 2>&1

Note: replace XX with your PHP version like 74 or 80 etc.

ive tried it nothing happened i dont know where cron root running path or the log file ?

no help yet any soulution :frowning:

Which php version you are using?
Send me a private message with your php version for the domain and also the domain name.

I recently read the blog about Cron jobs its really help me. you must read this blog its might that help you
How To Use Cron Jobs With Laravel?