# What Are Cron Jobs? Setup Guide for cPanel and DirectAdmin

https://bihostnet.com/en/knowledgebase/article/what-are-cron-jobs-cpanel-directadmin-setup-guide

## Understanding Linux Cron Jobs

Cron Jobs automate repetitive administrative tasks (database maintenance, queue processing, currency sync) at specified temporal intervals.

## Crontab Timing Syntax

```
* * * * * command to execute
┬ ┬ ┬ ┬ ┬
│ │ │ │ └──── Day of week (0-6) (0=Sunday)
│ │ │ └────── Month (1-12)
│ │ └──────── Day of month (1-31)
│ └────────── Hour (0-23)
└──────────── Minute (0-59)
```

## Executing PHP Scripts in cPanel

```
/usr/local/bin/php -q /home/username/public_html/cron.php >/dev/null 2>&1
```

## Optimizing WordPress wp-cron

Add `define('DISABLE_WP_CRON', true);` to `wp-config.php` and trigger WordPress cron via system cron every 30 minutes to boost site performance.
