If you have a website that uses, for example, the Laravel framework, you may need to set up so-called workers for managing automatic jobs with Laravel Queue or Laravel Horizon. Symfony Messenger and/or Craft CMS Worker are also supported. We have developed an extension to cPanel where you can set up these workers yourself, and this guide describes how to do it.
Access settings for workers
To access the settings for your workers, do as follows:
- Begin by logging on to cPanel.
- Click the icon
Queue Workers
underAdvanced
. - You will now be able to configure up to two queue workers, for example one for your production environment, and one for staging/development.
Managing workers
Once you accessed the settings for your workers (as described above), you have the following configurable options (settings for production and for staging/development are set up in the same manner):
- Worker number: You can have up to two workers per cPanel account. This is the identifier for them.
- Status: Here you’ll see whether or not the worker is active.
- Type: What type of worker you’ve set up (Laravel Horizon, Laravel Queue, Symfony Messenger, or Craft CMS Worker).
- Application executor path: The path to, for example, the project’s artisan file.
- Actions: Here you can
Start
orStop
your worker.