Why SuiteCRM cron setup decides whether scheduled work runs at all
The SuiteCRM scheduler is the component that runs timed background jobs on a self-hosted instance, including scheduled emails, campaign sends, workflows and cleanup tasks. It runs only when a cron entry on the server calls it on a regular interval, so a missing or misconfigured cron entry produces no error on screen. The jobs simply stop. Teams usually find out days later, when a campaign never goes out or a workflow that should reassign cases has not fired. Cron setup belongs in every new server build and must be checked again after a move of the web root, a change of web server user or a server rebuild, because the cron entry is tied to a specific user account and path.
In SuiteCRM 8, scheduled job execution is separate from the Messenger worker. The scheduler decides which jobs are due and runs them when cron triggers it. The Messenger worker handles queued background messages on its own process. A healthy worker tells you nothing about whether scheduled jobs are running, and the reverse is also true. Teams that set up the worker and assume scheduled jobs are covered often miss the gap. Before go-live, decide who owns each process, which user each one runs as, and how a failure in either one will be noticed. The worker setup is covered on its own page, so treat it as a second check rather than a substitute.
Before relying on the scheduler, confirm three things in your own environment: the exact cron line and interval for your SuiteCRM version in the SuiteDocs admin guide, the web server user on your Linux distribution, and whether your configuration needs an allowed user list for cron. If you run on Windows, confirm the equivalent task definition with the same user and working directory. Then run a harmless scheduled job, check that it appears as run in the scheduler widget, and record the result. A one-time test proves the entry works today, but a recurring check is what catches a silent failure later.
Scheduler configuration options and when each fits
This table compares the ways to trigger the SuiteCRM scheduler, from a Linux crontab for the web server user to a manual run for testing only. Read each row for who owns the job, how visible it is in logs and audits, and what happens after a reboot. Confirm the exact cron user, allowed_cron_users value and Windows steps against the SuiteCRM 8 admin documentation for your release before you rely on any option.
| Option | Where it fits | Trade-offs | What to confirm |
|---|---|---|---|
| Linux crontab for the web server user | Linux or Unix hosts where Apache runs as a dedicated web user, the usual production pattern | Runs under the same account that owns the SuiteCRM files, so permissions stay consistent; the entry is easy to miss during server handover and needs explicit review | The web server user name on your distribution, and that the entry calls schedulers:run every minute as that user |
| allowed_cron_users setting | Any deployment where more than one account could trigger scheduler jobs | Limits which users may run scheduler jobs, which helps audit scope; a mismatch between this list and the crontab user can stop jobs without an obvious error | The exact configuration key, its location in your config files and the accepted value format for your SuiteCRM 8 release |
| systemd timer | Linux hosts where the team already manages services and timers through systemd and wants logs in the journal | Gives reboot recovery and structured logs; adds a unit file to maintain and may run under a different user unless set explicitly | Whether your SuiteCRM 8 documentation covers systemd timers, and the user and working directory the unit should specify |
| Windows Task Scheduler | IIS or other Windows hosts where Linux cron is not available | Integrates with Windows audit and service accounts; the task must run as the account that can read and write the SuiteCRM directory and needs its password updated when it changes | The PHP executable path, the console command syntax for Windows and the run-as account the documentation expects |
| Manual command run | Testing and troubleshooting only, on a staging or development instance | Shows errors immediately, but nothing runs on a schedule, so scheduled tasks stop after a reboot or session end; it should not be the production setup | That the scheduler widget shows jobs running once the production schedule is in place |
| Scheduler widget check | Confirming any of the options above, after setup and after each server change | Shows whether jobs ran from the admin interface without reading server logs; it does not prove the OS-level trigger is healthy by itself | Where the widget appears in your release and which job status fields it reports |
How to configure the scheduler cron entry step by step
This sequence sets up one scheduled job that runs SuiteCRM's schedulers every minute under the correct server account. Each step ends with a check, so you can confirm the scheduler works before you move on to other jobs.
Confirm the PHP and console paths
Log in to the server as an administrator and run
which phpto record the PHP binary path. Find the SuiteCRM 8 console script in your install directory and note its full path. Check the PHP version against the SuiteCRM 8 compatibility matrix for your release. Done when running the console with the recorded PHP binary lists available commands without errors. This step changes nothing, so no rollback is needed.Identify the web server user
Find the account your web server runs as by checking the user directive in your Apache configuration or the PHP-FPM pool file. Then confirm the SuiteCRM files and cache directories are owned or writable by that account using
ls -lon the install directory. The scheduler should run as this same user so it can write to the same files the web application uses. Done when the user name is written down and matches the file ownership you observed.Add the cron entry for that user
Run
crontab -uwith the web server user name and the edit flag as your system documents, then add one line that runs the schedulers:run command every minute using the PHP binary and console path from step one. Confirm the exact syntax against the SuiteCRM 8 admin documentation for your version before saving. Done when listing that user's crontab shows the new line. Rollback: open the same crontab, delete the line, and save.Set allowed_cron_users if required
Check whether your SuiteCRM version requires the cron user to appear in the allowed_cron_users setting, and confirm in the SuiteCRM configuration reference where that key is set for your install. If it is required, add only the web server user that runs the cron entry, and keep the list as short as possible. Done when the scheduler log shows no permission errors on the next run. Rollback: restore the previous value and reload configuration as your version's documentation describes.
Configure Windows Task Scheduler equivalents
Only do this if you host SuiteCRM on Windows. The compatibility matrix lists Linux, Unix and macOS, so confirm Windows support for your release with SuiteCRM before building this. If supported, create a task that runs the PHP executable against the console with the schedulers:run command every minute, under the account the web server uses, with the task set to run whether the user is logged on or not. Done when the task history shows successful runs. Rollback: disable or delete the task.
Confirm jobs run from the scheduler widget
Sign in to SuiteCRM as an administrator and open the Scheduler widget or the Schedulers page in the admin area. Wait long enough for the cron entry to fire more than once, then refresh the page. Done when the last run times advance and the job status shows no failures. If nothing changes, check the cron user, the PHP and console paths, and the scheduler log, then correct the entry or revert it using the rollback from the earlier step.
What goes wrong when SuiteCRM scheduled jobs stop running
Scheduler failures in self-hosted SuiteCRM usually look quiet: no error page, just reminders that never send and workflows that never fire. The cards below cover the failure patterns we see most often, each with the symptom to look for and the check that confirms it, so you can separate a cron problem from a PHP or permissions problem before you change anything.
Wrong web server user
The cron entry runs schedulers:run as a user that cannot read or write the SuiteCRM cache, log and upload directories. The symptom is a job that starts, then fails with permission errors in the SuiteCRM log, often after a deployment run as root or a deploy user. Check the owner of the install directory and the user named in the crontab against the user your web server runs as, and confirm both match the cache and log paths.
Cron entry points at the wrong PHP or path
The crontab calls a PHP binary or install directory that differs from the one serving the web application, for example a CLI PHP version that is not on the supported list or a path left over from a previous install. Jobs appear to run, but they execute a different code tree or PHP version than the site uses. Run which php and php -v as the cron user, compare them with the PHP version your web server uses, and confirm the cd path points at the current release.
allowed_cron_users does not match the executing user
SuiteCRM only runs scheduler jobs for users listed in the allowed_cron_users setting. If the cron entry runs as a user that is missing from that list, the scheduler exits without running jobs and logs little that is obvious. The symptom is a cron entry that executes on schedule with no job activity. Compare the value in your configuration with the output of whoami run under the same cron context, and correct either the list or the cron user, not both.
Jobs stuck or locked after an interrupted run
A scheduler run that is killed by a timeout, a server reboot or a stopped container can leave a job marked as running. Later runs then skip it, so reminders and clean-up tasks stop without an error. The symptom is one job with an old start time that never completes. Check the job's status and last-run values in the scheduler list, confirm no schedulers:run process is still active, and clear the stale state only after you have confirmed the earlier run has ended.
Scheduler widget shows no recent activity
The Scheduler widget on the admin home screen lists the last time each job ran. If the widget shows no recent activity, the cron entry is not running at all, or it runs but writes nothing the widget can read. This is the fastest signal that cron is broken, so use it as the final check after fixing the entry. Confirm each job shows a recent run time, then leave the system for one full cycle and check again to rule out a one-off success.
How the scheduler differs from the Messenger worker
A healthy scheduler does not prove that background Messenger tasks are running. SuiteCRM runs two different mechanisms for background work. Scheduled jobs, the ones you set up in the scheduler and see in the scheduler widget, are started by the cron entry that calls schedulers:run every minute. Messenger tasks are queued work handled by the messenger:consume worker, which is a long-running process with its own setup. Each needs its own process, and each can fail while the other keeps working. A green scheduler widget tells you the cron path is firing, nothing more.
When you plan the environment, treat these as two checks with two owners in your runbook. For the scheduler, confirm the cron entry runs as the web server user and that jobs show recent run times. For the worker, confirm a separate supervised process is running and restarts after a reboot. Ask your team or partner to name who watches each one and what alert fires if either stops. Note that the worker is not covered by the scheduler setup in this section, so a missing worker will not appear in the scheduler widget.
The two next reads in this hub cover the worker and the cache layer: the Messenger worker page explains how to keep background tasks moving under a process manager, and the OPcache and APCu page covers PHP caching settings that affect how the application behaves after deploys. Read the worker page before you go live, because a scheduler check alone will not reveal a stopped worker.
Security and operational considerations for scheduler accounts
The scheduler cron entry runs SuiteCRM's background jobs under a real operating system account, so that account, the commands it can execute and the people who can change its configuration are part of your security boundary. The cards below cover the controls to review against your own hardening baseline before the scheduler goes live and after each upgrade.
Run the cron entry as the web server user
The scheduler entry should run as the same account that serves SuiteCRM, so the job reads and writes the files the application already owns. Do not add that account to sudo or grant it shell login for convenience. Check that the account's home directory, login shell and group memberships match what your baseline allows for a service account. Confirm the exact user your web server runs as before you write the crontab line, since a mismatch causes permission errors that people often fix by widening access.
Restrict who can edit allowed_cron_users
The allowed_cron_users setting controls which operating system accounts may run the scheduler, so changes to it expand who can trigger jobs. Limit write access to the configuration file to the administrators who own the deployment, and track changes through your normal configuration management or file integrity monitoring. Ask your team to confirm that no account outside the approved list can start scheduler runs through the web or command line.
Log and retain scheduler output
Scheduler runs fail quietly unless their output is captured. Redirect the cron output to a log file that the web server user can write but other local users cannot read, and set a rotation and retention period that your incident response policy requires. Logs can contain record identifiers, email addresses and error traces, so treat them as application data. Confirm with your security team where these logs are forwarded, who can read them and how long they are kept.
Protect the console path and PHP binary
The scheduler calls the SuiteCRM console and the PHP binary, so anyone who can replace either file can run code as the scheduler account on every cron cycle. Set ownership so that only root or a deployment account can modify the application code and the PHP executable, and make the web server user read-only on code paths. Verify file integrity after each deployment and confirm that your container or host image does not leave writable copies of either file.
Review scheduler jobs after upgrades
Scheduler job definitions can change between releases, and new or altered jobs may call external services or touch more records than before. After each SuiteCRM upgrade, compare the active job list in the scheduler screens with the list you approved, and disable anything unexpected until its purpose is confirmed. Check the release notes for the version you are moving to and repeat this review on a staging instance before production. Record the outcome as part of your change record.
SuiteCRM LTS pageQuestions teams ask before setting up SuiteCRM cron
Can an internal admin set up SuiteCRM cron without a partner?
Yes, in most Linux setups an internal admin with shell access and the web server user name can add the scheduler entry and check it. The work is small in code terms: one cron line that runs the scheduler command every minute as the web server user, plus a check that the jobs run. The harder part is access and judgment: the admin needs root or sudo on the server, a SuiteCRM administrator login to view the Scheduler widget, and the ability to test without disrupting users. If your team already runs cron jobs for other applications and has a change process, the setup usually fits inside normal operations work. Confirm the exact command and the allowed user setting against the SuiteCRM 8 release you run before you change production.
What makes SuiteCRM cron setup take more or less effort?
Effort rises with the number of scheduled jobs, the operating system, the hosting model and the number of SuiteCRM instances. The main drivers are:
- Number of jobs: more enabled schedulers means more to verify in the widget and more chance of a job failing silently.
- Windows versus Linux: Windows servers use Task Scheduler instead of cron, which needs its own account, trigger and working directory settings.
- Shared hosting: some hosts restrict cron or only offer an interface with limited intervals, so the setup depends on what the provider allows.
- Multi-instance staging: each environment needs its own entry, its own web server user check and its own test, so drift between staging and production is a common cost.
Ask any quote to list which of these apply to your servers.
What do we need to provide before the cron work starts?
Provide four things: shell or remote access to each SuiteCRM server with rights to edit the scheduler configuration, the name of the web server user that runs PHP (commonly the Apache or nginx user on Linux, but confirm it on your host), an administrator login to SuiteCRM so the Scheduler widget can be checked, and a test window where scheduled jobs can run and be watched without affecting users. It also helps to have a list of the schedulers your business relies on, such as email import or campaign sends, so the team knows which results matter. Missing any of these usually delays the work more than the technical change itself.
Is cron setup a one-time task or ongoing work?
The entry itself is a one-time configuration change, but the check is recurring. Once the cron line runs, it keeps running until someone changes the server, the web server user, the PHP path or the SuiteCRM version. Each upgrade, server rebuild or migration to a new host is a point where the entry should be reviewed. Recurring costs are the time to check the Scheduler widget after changes and to investigate jobs that stopped. If you use a support or maintenance arrangement, confirm whether scheduler checks are included in its written scope.
How do we confirm SuiteCRM scheduler jobs are actually running?
Check the Scheduler widget in the SuiteCRM admin area, which shows when each scheduler last ran and whether it succeeded. Then check the server side: confirm the cron entry exists for the web server user, look for the job output or log written by the scheduler command, and confirm the file permissions allow the user to write logs and cache. A useful test is to create a scheduler that does something visible, such as a harmless record update, and confirm it runs at the next interval. Repeat the check after every change of server or SuiteCRM version.
Does the cron entry create any security exposure?
The risk is mainly about which account runs the job and what that account can touch. The scheduler should run as the web server user, not as root, so the job has only the rights the application needs. Review who can edit the crontab and the SuiteCRM configuration file that lists allowed cron users, because that setting decides which accounts may trigger scheduler runs. Keep these changes in your normal change record. Security testing of the wider SuiteCRM setup is a separate scope if you want it reviewed.
When should we bring in outside help for SuiteCRM scheduler setup?
Bring in outside help when the environment is hard to change safely or when the cost of a wrong setting is high. Typical triggers are Windows-hosted SuiteCRM where no one on the team has run Task Scheduler for web applications, several staging and production instances that must match, a planned upgrade or migration that changes the server, or a shared host where cron options are limited. DeployOpen can plan and implement SuiteCRM on infrastructure you control, including scheduler setup and checks, under a written scope agreed before work starts. Ask any provider for the written scope, the list of environments covered and what is handed over for your team to run.
How the cron entry, scheduler and job queue connect
The run starts with the system cron entry, which runs as the web server user and calls the SuiteCRM scheduler command every minute. That command checks the Scheduler module for jobs that are due, runs them, and writes each result back to the database. The admin Scheduler widget reads those same results, so it shows whether jobs actually ran. Check that the cron user matches the web server user, and that the widget shows recent runs after the first few minutes.
The OS cron entry hands off to SuiteCRM, which records job results for the admin widget.
How DeployOpen sets up and checks SuiteCRM scheduling
DeployOpen starts scheduler work by agreeing the hosting model in writing before anyone touches a server. The scope records where SuiteCRM runs, which Linux distribution or Windows Server build hosts it, which account the web server runs under, and who owns the cron or Task Scheduler entry after handover. Those answers decide whether the work is a single crontab line on a Linux host, a Windows Task Scheduler job that runs PHP directly, or a container or orchestrator job that calls the same console command. Each route is configured inside the client's own infrastructure, so the client's change control, service accounts and monitoring stay in force. The written scope also names who approves the change window and who receives the results.
Configuration is followed by proof that jobs actually run. DeployOpen confirms that the scheduler entry fires every minute as the intended user, that allowed_cron_users in the SuiteCRM configuration accepts that account, and that the Scheduler widget in the Administration area shows recent job runs with the expected status. Where the widget and the server disagree, the team checks the web server and PHP logs, file ownership under the SuiteCRM install directory and the Windows task history before concluding anything. Test jobs are run on a staging instance first where the client has one. The team then documents the crontab or task definition, the account, the verification steps and the failure symptoms in a runbook the operations team can follow without the original engineers.
After handover, scheduling changes with SuiteCRM upgrades, operating system changes and server moves, so DeployOpen offers retainer support to recheck the entry after each planned upgrade and to answer questions when jobs stop. Clients should ask any provider to state in the quote who performs the post-upgrade check, how the results are recorded and what happens when a job fails outside working hours. Before an upgrade, confirm the target version's release notes, which are published with each SuiteCRM 8 release on SuiteCRM-Core GitHub releases, and reconfirm the scheduler command because command names and options can change between releases.

