User Tools

Site Tools


Setting up the Etano Cron Job in cPanel

What is cPanel?

cPanel is the most widely used web based control panel tool provided by your host which helps you manage your web hosting account through a web interface. If your host uses another control panel such as "Plesk" you'll need to seek instructions from your host or another source.

What is the purpose of Cron Jobs?

Cron Jobs are designed to maintain a list of commands or tasks that the Etano system needs to run at various time intervals, including periodic maintenance. Having tasks run at various times also helps spread the load of resources used so your site runs as smooth and efficent as possible, which becomes especially important as your site grows where you begin to have lots of members online.

Important - Please Read:

Cron Jobs are a crucial part of your Etano site and is the single most common cause for things not functioning properly on your site. Such as new members not showing up on the site or in the search results, new blog posts not showing, and email notifications not being sent out, etc.

So it's important that you read and follow the instructions provided carefully.

Before setting up your cron job make sure that your host allows crons to be run every 5 minutes, some shared hosting plans do not allow crons to be run under 10 or even 15 minutes. GoDaddy and HostGator are a couple of examples, they only allow cron jobs under 15 minutes on their VPS and Dedicated server plans. Many hosts aren't up-front as to how frequently you can run cron jobs, so you may need to do some digging in their site terms or forums, or ask them directly. Most will allow you to make cron settings of 5 minutes in cPanel, but that doesn't necessarily mean it's going to actually work.

Once you have determined or verified that your host allows crons to be run every 5 minutes, proceed with setting up the cron job by following the instructions provided below:

Setting Up The Cron Job:

1) Access your cPanel interface and login, then click on the icon located in the Advanced section of your cPanel interface.

You may next be asked to choose your experience level. If so choose 'Standard'.

2) Select the predefined time periods shown below from the Common Settings drop-down menu.

The "Command" field is where you enter the "command to be run by cron" that you received at the end of the installation process, which should look something like this:
/usr/bin/php -f /home/your_user/public_html/tools/cron/cron.php

If you failed to make a note of (or copy) the "command to be run by cron" that you received at the end of the installation process, you will need to either go thru the install process again, or ask your host what the correct command is for your server. You can also try getting your correct server path by viewing the includes/ file on your server, and looking at this line:


Then you would include the path in the cron command so it's like this:

/usr/bin/php -f /home/your_user/public_html/tools/cron/cron.php

Make sure that your cron jobs are set at */5 * * * * and not 5 * * * *

*/5 is for every 5 mins and capable of running crons every 5,10,15,20,25,30,35,40,45,50,55 minutes.

If you have the cron set at 5 * * * it will only run every 5 minutes but will not run any cron jobs set at other intervals less than one hour, and the Etano script has some key cron jobs that need to be run every 5 and 10 minutes.

3) This step is optional. Enter the email address where you want the cron output sent to. This can be beneficial if you're having issues with your cron jobs as you will be able to tell if the crons are working or failing.

Some common symptoms that you're crons might not be functioning properly:
When a new member joins, and after waiting 10 or 15 minutes, they don't appear in the search results or in the "Latest Members" widget. New blogs don't show up after waiting 10 or 15 minutes. Certain email notifications not being sent out.

Note: Once you get the cron jobs working properly, it won't show members that were created while the crons weren't functioning, the only way they will be released and updated is by 'regenerating' your skin under the 'Skin Settings' in your Etano admin.

setting_up_the_etano_cron_job_in_cpanel.txt · Last modified: 2014/05/01 09:39 by admin