Cron and queue
The one cron line every host needs, what runs from it, and how to prove it works on cPanel, a VPS and Cloudways.
One rule for every host: one cron line, every minute, runs the scheduler. Everything else hangs off it: balance collection, licence check-ins, emails and queued jobs. Nothing else needs a cron.
* * * * * cd /full/path/to/app && /path/to/php artisan schedule:run >> /dev/null 2>&1
Use the PHP path your host shows for the app (for example /usr/local/bin/ea-php82 on cPanel, the version shown in the Cloudways panel, or php on a plain VPS). It must be PHP 8.2 or newer. The exact line for your server, with its real path, is shown on the installer's Done screen and under Admin, Maintenance, Cron and scheduler, with a Copy button.
#cPanel and shared hosting
- Set
QUEUE_CONNECTION=database. Do not run a worker. The scheduler starts a short queue run every minute, so the same cron line also drains the queue. - Open Cron Jobs, choose Once Per Minute, and paste the line.
- Set a real mail server in Admin, Email. With the mailer set to
log, nobody receives emails.
#A VPS
- Set
QUEUE_CONNECTION=redisand run Horizon under Supervisor (see Install the platform). After every deploy runphp artisan horizon:terminate. - Add the same one cron line.
#Cloudways
- Open Application, Cron Job Management and add the line (one-minute jobs are allowed).
- Choose one setup: simplest is
QUEUE_CONNECTION=databaseand nothing else (the same as cPanel); faster is Redis plus Horizon under Supervisor. - Make sure
/api/*and/webhooks/*are not cached or challenged. Licence signals and payment webhooks must reach the app. - Do not edit the crontab by SSH: the panel replaces it.
#Prove it is working
On the main platform:
php artisan schedule:list
php artisan naara:verify wl
php artisan licence:public-key
On a white-label install:
php artisan whitelabel:doctor
php artisan whitelabel:check-in
whitelabel:doctor prints yes or no answers only, never a key or password, so it is safe to paste into a support ticket. Admin, Setup health also shows a red row for any scheduled job that stopped.
If a signal cannot reach a white-label install (a firewall, a Cloudflare challenge, the site down), the hourly check-in catches up. Nothing is lost.