LIMITED OFFER ๐Ÿ”ฅ Special Promo โ€” Get up to 50% OFF all Web & Business Hosting plans with code HOST50. Claim discount โ†’
โ† Knowledge Base
WordPress5 min read

How to Disable WP-Cron and Use a Real cPanel Cron Job

By default, WordPress handles scheduled tasks (publishing scheduled posts, checking for plugin updates, clearing caches) using a system called WP-Cron. The problem: WP-Cron does not run on a real schedule. It fires by piggybacking on every page visit to your site. On a busy site, this means WP-Cron may run dozens of times per minute โ€” consuming Entry Processes, inflating your CloudLinux LVE usage, and contributing to 508 Resource Limit errors. The fix: disable WP-Cron and replace it with a genuine server-level cron job.

Step 1: Disable WP-Cron in wp-config.php

  1. Log in to cPanel > File Manager.
  2. Navigate to public_html and open wp-config.php for editing.
  3. Add this line before the line that says /* That's all, stop editing! */:
define( 'DISABLE_WP_CRON', true );
  1. Save the file. WP-Cron is now disabled.

Step 2: Create a Real Cron Job in cPanel

Now you need to replace WP-Cron with a real server-scheduled task:

  1. In cPanel, scroll to the Advanced section and click Cron Jobs.
  2. Under Add New Cron Job, set the frequency. Select Once Per 10 Minutes from the Common Settings dropdown (this sets all the time fields automatically).
  3. In the Command field, enter one of the following options โ€” choose the method that works on your server:

Option A โ€” Using wget (recommended):

wget -q -O /dev/null "https://yourdomain.com/wp-cron.php?doing_wp_cron" > /dev/null 2>&1

Option B โ€” Using PHP CLI (if wget unavailable):

/usr/local/bin/php /home/yourusername/public_html/wp-cron.php > /dev/null 2>&1

Replace yourdomain.com and yourusername with your actual domain and cPanel username.

  1. Click Add New Cron Job.

Why Every 10 Minutes?

Running it every 10 minutes is the standard recommendation. WordPress considers tasks "due" if they haven't run within the last 10 minutes anyway. Running it more often wastes resources; less often and scheduled posts or plugin tasks may be delayed.

Verifying It Works

After setting the cron job, install a plugin like WP Crontrol to view your scheduled WordPress events and confirm they are running on time. If an event last ran within the past 10 minutes, your server cron is working correctly.

Still Hitting Resource Limits?

If disabling WP-Cron hasn't resolved your 508 Resource Limit errors, Business Hosting provides 5x higher Entry Process limits and dedicated CPU allocation โ€” giving your site room to breathe.

View hosting plans
Registered LLPHostinap Software Solutions
cPanel PartnerLicensed control panel
LiteSpeedLicensed web server
Since 201510+ years hosting