Interspire Product Knowledge Base

Would you like to...

Print this page Print this page

Email this page Email this page

Post a comment Post a comment

Subscribe me

Add to favorites Add to favorites

Remove Highlighting Remove Highlighting

Edit this Article

Export to PDF

User Opinions (23 votes)

86% thumbs up 13% thumbs down

How would you rate this answer?



Thank you for rating this answer.

How do I set up CRON on my server using Cpanel?

In order to get started with cron, you must have a server that is currently running cron. Your host will also be able to tell you where you are able to setup crontabs -- whether it's from a web based control panel, or through a telnet terminal window.

Finding your needed information
  • Path to PHP – UNIX and Linux have a special variable called env php which tells you where PHP is installed on your server. We'll use this instead of trying to figure out the path to PHP manually. If this does not work you can contact your host to find out what the correct path to PHP is.
  • Flags for output – In this example I've used the –q flag which runs cron in quiet mode; this flag stops some unnecessary messages. You can also add /dev/null after the server path to stop error messages being output as well.
  • Server Path to your script – You will need to specify the full server path directly to your script. You can find this on the settings page, as shown below.
  • Interspire Email Marketer attempts to write the path to PHP and any flags needed as well as the path to your Cron file. If this is not displayed for you there may be something on the sever that simply prohibits Interspire Email Marketer from finding this out for you. You will therefore need to find out this path yourself.

The path to the scheduled sending script from the settings page.


Cpanel 9 (Xskin)

Login to your control panel and look for the cronjobs icon There are two 'modes' to set cron jobs in Cpanel – you can choose either the standard or the advanced mode. The standard mode looks like this:


Setting up a cronjob in Cpanel using the simple options.


This is a very simple way to add the frequency of the cron without needing to know what the asterisk or the numbers mean. In the command line you then add your path to PHP and the full path to your script. In the top field, you place the email address where the output will be sent – this is usually to alert you of errors etc.

For the advanced mode you will see the following:


Setting up a cronjob in Cpanel using the advanced options.


In this mode, you simply place the full command and then enter your frequency in the corresponding columns – they are clearly labeled so you can see which column are using as well.

If you add your email address to the available field you will be sent any error messages produced by cron to let you know if anything is not working as it should.

Once you have done this you just need to select 'Commit Changes' and you are done.

Powered by Interspire Knowledge Manager - World's #1 Best Selling FAQ and Knowledge Base Software