CyberPanel Community

Help me with cronjob laravel cronjob on cyberpanel

ET
ELHadj Tahraoui #1

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

8 replies
Na
Nada #2

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

did you read this simple guide CronJob

ET
ELHadj Tahraoui #3

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

RM
Rana Muhammad Usman Nasir #4

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.

ET
ELHadj Tahraoui #6

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

NK
Nitesh Kunnath #8

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

Sign in to reply