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

swapnilajspire's avatar

cron job is not working in cpanel for subdomain?

I am trying to run cron job on cpanel and my project is in laravel ... I have hosted that project on subdomain when I try to add path but it is not working.

usr/local/bin/ea-php81 /home/abc/public_html/crm.abc.in/ artisan notifications:send

and i checked the logs it throws command not found error

0 likes
3 replies
Snapey's avatar
cd /home/abc/public_html/crm.abc.in/ && usr/local/bin/ea-php81 artisan notifications:send

Tell me what do you see when you visit http://yourdomain.com/crm.abc.in/.env ?

Also why run a specific command and not the scheduler?

swapnilajspire's avatar

@Snapey Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0".

swapnilajspire's avatar
/usr/local/bin/ea-php81 /home/abc/abc.in/artisan schedule:run

i also tried this command. sorry i saw your reply a bit late. i will try it with your command

Please or to participate in this conversation.