🔥 LIMITED PROMO: Get .co.zw domains from $3.00/year! Get Started

Using Cron Jobs Print

  • 0

Cron jobs allow you to schedule tasks or scripts to run automatically at specific times, making them ideal for recurring processes like backups or sending emails.

Steps to Set Up Cron Jobs in cPanel:

  1. Log in to cPanel.
  2. Navigate to the Cron Jobs section under the Advanced category.
  3. Set the Email Notifications for the cron job. This ensures you receive an email if the cron job encounters issues.
  4. Configure the Timing Settings:
    • Use the pre-set intervals (e.g., once per day, once per week) or set a custom schedule using cron syntax.
    • Example custom schedule:
      • 0 3 * * * runs the cron job every day at 3:00 AM.
  5. Enter the Command to Execute:
    • Example: php /home/username/public_html/cron-script.php
      Replace /home/username/public_html/cron-script.php with the path to your script.
  6. Click Add New Cron Job to activate it.

Pro Tip: Ensure your script has the correct permissions and is tested before scheduling it as a cron job.

If you encounter any issues while using these advanced features, contact JomeTech Africa Support:


Was this answer helpful?

« Back