Website general: Setup a Cron Job
Search:
Setup a Cron Job

 What is a cron job?

The cron daemon is a long running process that executes commands at specific dates and times. To schedule one-time only tasks with cron, use at or batch. For commands that need to be executed repeatedly (e.g. hourly, daily or weekly).


How to start Cron
We will provide here instructions for CPanel-based control panel. I hope you will be able to find equivalent controls if your hosting uses different panel software.

  1. Login into your webhosting control panel (http://example.com/cpanel/). You will see a screen like:
    cron1
  2. Click to Cron Jobs link. It may be also hidden in Tools or Advanced submenu. You will see screen offering you to choose your expirience level.
  3. Choose Advanced. You will see the following screen:
    cron3
    Into the empty bottom line, enter:
    Minute = 0
    Hour = * (every hour)
    Day = * (means every day)
    Month = *
    Weekday = *
    Command = wget -qb http://yourdomain.com/cron.php
    Of course, replace yourdomain.com to your actual domain name. Ensure that this URL works, first try to open it from your browser. Click Commit Changes.
  4. On the next day, if you receive e-mail notifications from "Cron Daemon" that says that something is wrong with your command, please read it carefully. It means that your cron job doesn't work. If it says "Command not found" , try to use the following command lines:
    /usr/bin/curl -s http://yourdomain.com/egbusiness/cron.php
    /usr/local/bin/curl -s http://yourdomain.com/egbusiness/cron.php
    /usr/bin/wget -o/dev/null -O- http://yourdomain.com/egbusiness/cron.php
    /usr/local/bin/wget -o/dev/null -O- http://yourdomain.com/egbusiness/cron.php
  5. Command might be different, depends on your host server. If the command is not running well, you can call your webhost. If nothing helps, you can use an external cron service, you may search cron service at google with keywords "cron service".

Other tutorials in Website general:

 

Popular Tutorials:


Testimonial

Eddie Burnette from United States:
 Hi everyone Just wanted you to know that Script4Profit and EGN Hosting are the BEST services I have ever used!!!.....I have a program that is very high volume, and I find that the uptime for my websites and the customer service provided are EXTREMELY TOP NOTCH!!! After being dissapointed by other companies in the past, it was such a relief to find a GREAT service!!....I HIGHLY recommend your program...Thank you Script4Profit and EGN Hosting for all the Great work you do!!! 

Latest News

Accepted Payments

Copyright © 2007 - 2026 EGN Software, All rights reserved

Talk to us?