A cron job is a task that the server runs automatically on a schedule, for example every 15 minutes, every night at 2 AM or every Monday. Websites use cron jobs to send scheduled emails, clear caches, import data, run WordPress scheduled posts and process queues (for example Laravel’s scheduler). cPanel’s Cron Jobs tool lets you create them without any command-line access.
Create a cron job
- Log in to your FimuroHost client area at https://app.fimurohost.com.
- Go to Services and select your cPanel Hosting plan.
- Click Login to cPanel. cPanel opens in a new tab, already signed in.
- In the Advanced section, click Cron Jobs.
- Under Cron Email, enter an address and click Update Email if you want to receive the output of your jobs. This is useful while testing.
- Under Add New Cron Job, choose a schedule from Common Settings, such as Once Per Hour. The five time fields fill in automatically; you can adjust them.
- In Command, enter the full command to run (examples below).
- Click Add New Cron Job. The job appears under Current Cron Jobs.
The five time fields
| Field | Allowed values | Example |
|---|---|---|
| Minute | 0–59 | */15 = every 15 minutes |
| Hour | 0–23 | 2 = 2 AM |
| Day | 1–31 | 1 = first day of the month |
| Month | 1–12 | * = every month |
| Weekday | 0–6 (0 = Sunday) | 1-5 = Monday to Friday |
* means “every”. Times follow the server’s clock, which may not be Bangladesh time (UTC+6). If timing matters, run a test job that prints the date to find out the server’s time zone.
Command examples
Run a PHP script
/usr/local/bin/php /home/username/public_html/cron.php >/dev/null 2>&1
Always use full paths. Replace username with your cPanel username (shown under General Information). /usr/local/bin/php runs the server’s default PHP version. To use a specific version, use its path, for example /opt/cpanel/ea-php83/root/usr/bin/php for PHP 8.3; ask support if you are not sure which paths exist on your server.
Open a web address (URL)
/usr/bin/wget -q -O /dev/null "https://yourdomain.com/cron.php?key=YOURSECRET"
Replace WordPress’s built-in cron (recommended for busy sites)
- Add this line to
wp-config.php, above That’s all, stop editing:define( 'DISABLE_WP_CRON', true ); - Create a cron job that runs every 15 minutes (
*/15 * * * *) with:cd /home/username/public_html && /usr/local/bin/php wp-cron.php >/dev/null 2>&1
This makes scheduled posts and plugin tasks run reliably and removes extra work from every page view.
Laravel scheduler
cd /home/username/myapp && /usr/local/bin/php artisan schedule:run >/dev/null 2>&1
Run it every minute (* * * * *) only if your plan allows it; otherwise every 5 minutes.
Email output
If a Cron Email is set, the server emails any output from each run. Adding >/dev/null 2>&1 at the end of a command discards the output, so no email is sent. While testing, leave it off so you can see errors; add it once the job works, or you may receive hundreds of emails a day.
Edit or delete a job
In Current Cron Jobs, click Edit, change the fields and click Edit Line, or click Delete and confirm.
Common problems
- Nothing happens: check paths (run
pwdin Terminal if available, or look at File Manager’s address bar), and make sure the script works when opened in a browser. - “Permission denied”: run PHP files through the
phpbinary as shown above rather than executing them directly, or set the script’s permissions to755. - “Could not open input file”: the file path is wrong.
- Site slows down: jobs are too frequent or overlap. Leave enough time between runs for each job to finish.
Need help?
If anything in this guide does not match what you see, or you get stuck, open a support ticket (choose the Support department) or message us on WhatsApp at 01818160926. Tell us your domain name and what you have tried so far, and never send your password in a ticket or chat.
Categories
Written by
FimuroHost Team
Technical Writer