0

I am a newbie in Laravel. I am trying to run a Cron job in Laravel on Namecheap shared hosting.

When I run the script through browser it works perfectly.

URL - https://mydomain.app/api/block-numbers-company

I am trying to set up a CRON taks in cPanel and I have this command setup

*/5 *   *   *   *   /usr/bin/php -q /home/userhome/mydomain.app/api/block-numbers-company

This doesn't gets executed.

Can someone guide me please?

2
  • Why do you want to setup a CRON in cPanel where within laravel application you can set CRON? Which version of laravel you are using??
    – Subha
    Commented Jun 28 at 19:51
  • /usr/bin/php -q /home/userhome/mydomain.app/api/block-numbers-company. I'm pretty sure this doesn't do what you think it does
    – Arun A S
    Commented Jun 29 at 2:23

0

Browse other questions tagged or ask your own question.