WordPress’s built-in scheduler, WP-Cron, only runs when someone visits your site. On busy sites that adds work to page loads; on quiet sites, scheduled posts and backups run late. To fix both, disable WP-Cron in wp-config.php and set up a real cron job in Hostinger hPanel that runs on a fixed timer. This guide covers both steps and how to check the job really runs.
Quick answer: Add define('DISABLE_WP_CRON', true); to wp-config.php, then create a Custom cron job in hPanel that runs wp-cron.php with PHP every 5–15 minutes.
- Add the
DISABLE_WP_CRONline above “That’s all, stop editing!” inwp-config.php. - In hPanel, open Advanced > Cron Jobs and choose Custom.
- Enter
/usr/bin/php -qfollowed by the full path towp-cron.php. - Pick an interval: about 15 minutes for a blog, 5 minutes for a store.
- Check in WP Crontrol or with
wp cron event listthat next-run times keep moving forward.
In this guide
- Before You Start
- Why Default WP-Cron Hurts Performance and Reliability
- Step 1: Disable WP-Cron in wp-config.php
- Step 2: Choose PHP CLI or an HTTP Request
- Step 3: Create the Cron Job in Hostinger hPanel
- Step 4: Check That the Cron Job Runs
- Common Problem: 403 Forbidden with the curl Method
- If It Still Doesn’t Work
- How Often Should the Cron Job Run?
- Frequently Asked Questions
- Next Steps

Before You Start
- Access: your Hostinger hPanel login. SSH is optional but makes checking easier.
- Your site’s full path: usually
/home/u123456789/domains/example.com/public_html, with your own username and domain. - Time: about 10 minutes.
- Backup: download a copy of
wp-config.phpbefore you edit it. Do Steps 1 and 3 in the same sitting: once WP-Cron is disabled, nothing scheduled runs until the real cron job exists.
Why Default WP-Cron Hurts Performance and Reliability
WordPress uses simulated cron because it could not assume early shared hosting gave users crontab access. On every page request, WordPress checks the cron row in the wp_options table for overdue tasks.
If something is due, WordPress sends a background HTTP request to itself at https://yourdomain.com/wp-cron.php. In practice, that causes four problems:
- Busy PHP workers: the self-request occupies a PHP worker. On shared plans with strict process limits, those calls can leave real visitors waiting, and in bad cases cause a 504 Gateway Timeout on Hostinger.
- Extra work on page loads: checking the schedule and starting the cron request happens during visitor requests, exactly when the site is busiest.
- Missed schedules: schedule a post for 4:00 AM, and if nobody visits until 8:15 AM, it stays unpublished for over four hours.
- Overlapping runs: the lock that prevents duplicate runs expires after a minute, so a long task can overlap with the next run, and poorly written jobs may then run twice.
The WordPress Developer Handbook on WP-Cron explains the system in more detail. A real cron job on a fixed timer avoids all four.
Step 1: Disable WP-Cron in wp-config.php
First, tell WordPress to stop checking the schedule on page loads. It takes one line.
In hPanel, go to Websites, pick your site, and open File Manager. Open the public_html folder, right-click wp-config.php and select Edit.
Add this line directly above /* That's all, stop editing! Happy publishing. */:
// Disable virtual WP-Cron on page load
define('DISABLE_WP_CRON', true);Placement matters. If you put it below require_once ABSPATH . 'wp-settings.php'; near the end of the file, WordPress has already started and ignores the setting.
Prefer SSH? Run wp config set DISABLE_WP_CRON true --raw from the site root, and WP-CLI adds the line in the right place and confirms with a success message.
Step 2: Choose PHP CLI or an HTTP Request
The cron job can run WordPress’s scheduler in two ways: directly with PHP on the command line, or by requesting wp-cron.php over HTTP with curl or wget.
Method A: Run wp-cron.php with PHP (Recommended)
Running wp-cron.php with the server’s PHP binary skips the web server (LiteSpeed on Hostinger) entirely. Web server time limits do not apply, there is no network round trip, and no web worker is used.
On Hostinger shared and cloud plans, the PHP command-line path is typically /usr/bin/php (confirm it with which php over SSH). The full command looks like this:
/usr/bin/php /home/u123456789/domains/example.com/public_html/wp-cron.phpMethod B: Request wp-cron.php over HTTP with curl
Requesting the file over HTTP is how WordPress itself calls it, so values like $_SERVER['HTTP_HOST'] and HTTPS detection behave exactly as on a normal visit.
curl -s -L "https://example.com/wp-cron.php?doing_wp_cron"For most single sites on Hostinger, PHP CLI is the better choice: it is faster and uses fewer web server resources. If you run a multisite network with subdirectories, or a setup behind a reverse proxy that depends on web-server variables, the curl method can be simpler to maintain.
Step 3: Create the Cron Job in Hostinger hPanel
Now add the job in hPanel. Go to Advanced > Cron Jobs.
You will see two job types: PHP and Custom. Choose Custom, which lets you enter the full command and paths yourself.
- Select Custom as the job type.
- In the command field, enter the PHP binary path followed by the full path to your site’s
wp-cron.php. - Choose the frequency. For a typical blog, every 10 or 15 minutes is enough; for an active WooCommerce store, every 5 minutes is safer.
- Click Save. Your new job should now be listed on the Cron Jobs page.
The finished command looks like this:
/usr/bin/php -q /home/u123456789/domains/example.com/public_html/wp-cron.phpThe -q flag hides HTTP header output when the server’s PHP is a CGI build, and does nothing otherwise. Hostinger’s cron form does not accept shell special characters directly, so leave off redirections like >/dev/null 2>&1. If you need them, put the full command in a small .sh script and schedule /bin/sh /home/u123456789/path/to/script.sh instead. Not sure of your site’s full path? Run pwd inside the site folder over SSH.
If you also run a staging copy, give it its own cron job with its own path, and never paste the production path into it. See how to set up a WordPress staging site in Hostinger hPanel.
Step 4: Check That the Cron Job Runs
A saved form does not prove the job works. Check that scheduled tasks are actually being processed.
The easiest visual check is the free WP Crontrol plugin. Install and activate it, then go to Tools > Cron Events.
At the top of the screen you should see this notice:
The DISABLE_WP_CRON constant is set to true. WP-Cron spawning is disabled.Then look at the Next Run column for events like wp_version_check or action_scheduler_run_queue. If the cron job is working, their next-run times keep moving forward within your interval instead of sitting in the past.
Over SSH, you can see the same queue with WP-CLI, run from the site root:
wp cron event list --fields=hook,next_run_relative,recurrenceYou can also run all due events by hand to check for hidden fatal errors:
wp cron event run --due-nowWP-CLI lists each event it ran and ends with a Success: line. If there are no PHP fatal errors, your scheduled events themselves are healthy.
Common Problem: 403 Forbidden with the curl Method
Suppose you use the curl method and scheduled posts still do not publish, even though the cron entry looks normal:
curl -s "https://example.com/wp-cron.php?doing_wp_cron"Run the same command by hand over SSH without the -s flag, or view the job’s output in hPanel. You may find the web server answers with an error page instead of running cron:
<html>
<head><title>403 Forbidden</title></head>
<body>
<h1>403 Forbidden</h1>
</body>
</html>A 403 here means a firewall or security rule (on the server, at a CDN, or in a security plugin) is blocking the request, often because of curl’s default User-Agent.
There are two ways around it:
- Switch to PHP CLI: command-line runs happen on the server itself and never pass through the web server or its firewall rules. This is the cleanest fix.
- Send a different User-Agent: if you must keep curl, pass a browser-style User-Agent string:
curl -A "Mozilla/5.0 (System Cron Daemon)" -s -L "https://example.com/wp-cron.php?doing_wp_cron"If It Still Doesn’t Work
- The job output says “Could not open input file”. The path to
wp-cron.phpis wrong. Runpwdin the site folder over SSH and copy the exact path. - The output shows PHP errors about syntax or missing functions. The command-line PHP may be a different version from the one your site uses. Check it with
php -vover SSH. - Events stay overdue but the job runs without errors. Check the interval in hPanel and that the job points at the right site; on accounts with several sites, it is easy to pick the wrong domain folder.
- Your staging site is password protected. HTTP-based cron requests get a 401. Use the PHP CLI method there.
How Often Should the Cron Job Run?
Do not run cron every minute just because you can. On shared hosting, that uses up CPU time and can get your account throttled. A sensible starting point:
- Simple blogs or portfolios: every 15 to 30 minutes. Tasks are mostly update checks and the occasional scheduled post, so resource use stays near zero.
- Standard WooCommerce stores: every 5 to 10 minutes. WooCommerce uses Action Scheduler for payment webhooks, receipt emails and stock updates. Five minutes keeps orders moving without straining the CPU.
- Busy membership or course (LMS) sites: every 2 to 5 minutes, for prompt progress updates and badges. At that volume, also add persistent object caching to take load off MySQL: the Object Cache option in hPanel on Business and Cloud plans or, on a VPS, our guide to configure Redis Object Cache on Hostinger.
Frequently Asked Questions
Is it worth disabling WP-Cron on a low-traffic site?
Yes, especially there. On a quiet site, WP-Cron only runs when someone happens to visit, so scheduled posts, emails and backups can be hours late. A real cron job runs on a fixed timer no matter how much traffic you get.
Will scheduled posts fail if DISABLE_WP_CRON is true?
Not if the real cron job works. Scheduled posts only fail when WP-Cron is disabled and no cron job exists in hPanel. Once the server-level job runs, posts publish within one interval of their scheduled time.
Why does my cron job send me hundreds of empty emails?
Because the command prints output. On servers where you manage the crontab yourself, the cron daemon emails any output to you, and appending >/dev/null 2>&1 silences it. In hPanel, a job’s output is shown next to the job instead, and redirections belong in a .sh script as described in Step 3.
Can I run WP-CLI commands in the Hostinger hPanel cron manager?
Yes, if WP-CLI is installed. Paste a command like /usr/local/bin/wp cron event run --due-now --path=/home/u123456789/domains/example.com/public_html into the Custom command field. Check the real path to wp first with which wp over SSH.
Does disabling WP-Cron affect Action Scheduler in WooCommerce?
No. Action Scheduler runs through the normal WordPress cron events. When your cron job runs wp-cron.php, Action Scheduler processes its pending queue automatically, so WooCommerce needs no separate cron job.
Next Steps
- Come back to Tools > Cron Events a day later and confirm nothing is overdue.
- If you installed WP Crontrol only for this check, you can deactivate it.
- Use the same hPanel cron screen to schedule off-site backups: see how to automate WordPress backups with WP-CLI and cron on Hostinger.

