Knowledge Base

How to Set up a Cron Job in cPanel

  • Log in to Your cPanel Account
  • Go to your Thamara Cloud Client Area (dashboard.thamara.cloud).
  • Locate your hosting service and click on the cPanel tap on the sidebar.

 

  • Open the Cron Jobs Tool
    • In the cPanel dashboard, type “Cron Jobs” into the search bar or scroll down to section “advanced”.
    • Click on the Cron Jobs icon to open the settings page.

 

  •  Configure Cron Email (Optional but Recommended)
    • In the Cron Email section, enter an email address if you want to be notified whenever a cron job runs.
    • If you prefer not to receive notifications, you can leave the field empty.

 

  • Add a New Cron Job
  1. Define the Schedule
  2. You can set the job frequency using:
  • Common Settings — pre-configured intervals (every 5 minutes, once per day, etc.)
  • Minute, Hour, Day, Month, Weekday fields — for full customization

Examples:

  • */5 in the Minute field → runs every 5 minutes
  • 0 0 * * * → runs every day at midnight

  • Enter the Command
  1. In the Command field, enter the full path to the script you want to run.
  2. For PHP scripts, the format usually looks like this:

/usr/local/bin/ea-php74 /home/username/public_html/script.php

Or, on CloudLinux servers:

/opt/alt/php74/usr/bin/php /home/username/public_html/script.php

Where:

ea-php74 or php74 → your server’s PHP version

/home/username/public_html/script.php → the exact path to your script

Once done, click Add New Cron Job.


You should see: “cPanel successfully added the cron job."

 

Managing Existing Cron Jobs

  • Edit → Scroll to Current Cron Jobs, click Edit, adjust settings, then save.
  • Delete → Click Delete next to the job you want to remove, then confirm.

<pre id="tw-target-text" class="tw-data-text tw-text-large tw-ta" dir="rtl" tabindex="-1" role="text" data-placeholder="Translation" data-ved="2ahUKEwi4tb-U4eiUAxUC9bsIHT4bGmAQ3ewLegQIDRAV" aria-label="Translated text: تحرير ← انتقل إلى مهام Cron الحالية، انقر على "تحرير"، اضبط الإعدادات، ثم احفظها.

حذف ← انقر على "حذف" بجوار المهمة التي تريد إزالتها، ثم أكّد الحذف.">تحرير ← انتقل إلى مهام Cron الحالية، انقر على "تحرير"، اضبط الإعدادات، ثم احفظها.

 

Please rate this article to help us improve our Knowledge Base.

0 0