Question: How do I set up cron for WordPress? Print

  • best hosting provider, GHFS cloud hosting, GHFS Hosting, shared hosting guide, GHFS web hosting, SSD web hosting, hosting knowledge base, how to register a domain, VPS hosting setup, domain and hosting tutorials, managed hosting services, how to transfer a domain, DNS configuration guide, hosting control panel tutorial, email hosting setup, SSL installation guide, CNAME configuration, A record guide, WordPress installation GHFS, MX record setup, SSL certificate troubleshooting, DNS records explained, FTP upload guide, WordPress migration guide, enable SSH access, secure VPS server, optimize WordPress performance, fix internal server error, Linux server commands, PHP configuration guide, MySQL database tutorial, malware removal guide, website security tutorial, DDoS protection GHFS, secure hosting best practices, firewall configuration VPS, VPS hosting tutorial, disable root login SSH, how to manage Linux VPS, cloud server configuration, Nginx setup GHFS, Apache configuration guide, install Docker on VPS, Redis installation, Python hosting tutorial, Node.js on VPS, MySQL optimization, hosting troubleshooting guide, cPanel tutorial, hosting performance optimization, SSL troubleshooting, Plesk tutorial, secure website setup, server hardening tutorial, SMTP configuration guide, email deliverability guide
  • 0

This article explains how to properly set up a real server-side cron job for WordPress on GHFS Hosting using Plesk. WordPress normally uses a built-in system called WP-Cron, but it is not always reliable. Setting up a real cron job ensures scheduled tasks run correctly.


1. What Is WP-Cron?

By default, WordPress uses WP-Cron, which runs only when someone visits your website.
This can cause issues such as:

  • Scheduled posts not publishing

  • Backups not running

  • Plugins not updating

  • High traffic triggering too many cron runs

A real server cron job is more stable and efficient.


2. Step 1: Disable WP-Cron in WordPress

To use a real cron job, first disable the internal WP-Cron.

Steps:

  1. Open your website files through Plesk File Manager

  2. Edit the file wp-config.php

  3. Add the following line above “/* That’s all, stop editing! */”

 
 
define('DISABLE_WP_CRON', true);

Save the file.


3. Step 2: Create a Real Cron Job in Plesk

Steps:

  1. Log in to your Plesk panel

  2. Go to Scheduled Tasks

  3. Click Add Task

  4. Set Task Type to Run a command

  5. In the command field, enter:

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

Replace yourdomain.com with your actual WordPress site URL.

  1. Set Run frequency to:

  • Once per 5 minutes (recommended)

Example schedule:

  • Minute: */5

  • Hour: *

  • Day: *

  • Month: *

  • Weekday: *

  1. Save the task.

This command executes WordPress cron automatically every few minutes.


4. Alternative Command (If wget is not available)

Use curl instead:

 
 
curl https://yourdomain.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1

5. Verifying Cron Is Working

After setting up:

  • Scheduled posts should publish on time

  • Plugins using cron should run correctly

  • Backup plugins work more reliably

You can check logs in Plesk under Scheduled TasksLog.


6. Troubleshooting

Cron does not run:

  • Wrong domain added in cron command

  • SSL issue if using https

  • WP-Cron not disabled in wp-config.php

“Permission denied” errors:

  • The cron job path is incorrect

  • Verify hosting permissions

Backup plugins still not running:

  • Plugin may require special configuration

  • Contact support for assistance


7. When to Contact GHFS Hosting Support

Contact support if:

  • The cron job is not running

  • You cannot access or edit wp-config.php

  • You receive persistent errors in the cron log

  • WordPress scheduled tasks still do not run correctly

GHFS Hosting can verify file permissions and cron settings for you.


Was this answer helpful?

« Back