The default Dolphin 7.1.x cron job looks like this with cPanel webhosting:
* * * * * cd /home/account-name/public_html/periodic; /usr/local/bin/php -q cron.php

The "account-name" is generally your cPanel login.

This assuming that you have installed Dolphin in public_html, and not in a subfolder/directory/etc. Your site would be accessible at yoursite.com, and not yoursite.com/subfolder.

Some people say that they have problems using the default cron job command.

If you are one of those that have problems with it the following are some alternatives you might try:
* * * * * /usr/local/bin/php -q /home/account-name/public_html/periodic/cron.php
* * * * * /usr/bin/php -q /home/account-name/public_html/periodic/cron.php

Be sure to replace "account-name" with your real cPanel account name.

If Dolphin was installed in a subfolder/subdirectory/Addon Domain/Sub-Domain the default cron job will look like this:
* * * * * cd /home/account-name/public_html/subfolder/periodic; /usr/local/bin/php -q cron.php

You can try these instead:
* * * * * /usr/local/bin/php -q /home/account-name/public_html/subfolder/periodic/cron.php
* * * * * /usr/bin/php -q /home/account-name/public_html/subfolder/periodic/cron.php

Be sure to replace "account-name" with your real cPanel account name, and "subfolder" with the name of the real subfolder.

To use your own custom php.ini file that you create rather than use the server/system php.ini

Create a php.ini file and put it in yoursite.com/php.ini

Then, you might use:
* * * * * /usr/local/bin/php -c /home/account-name/public_html/php.ini -q /home/account-name/public_html/periodic/cron.php

Or, you can create a php.ini file and put it in:

Then, you could use:
* * * * * /usr/local/bin/php -c /home/account-name/php.ini -q /home/account-name/public_html/periodic/cron.php

Again, make sure you replace "account-name" with your real cPanel account name.

For the /usr/local/bin/php and /usr/bin/php references mentioned above are for the actual paths to php on your hosts server. If you do not know the path to php, or if you are unsure simply ask your host what the path to php is. You might also inform them that you are trying to set up a cron job, and that you want to make sure you use the correct path to php. It is a very common question.

Written By
Tutorial by: Jeremy LeSarge (AKA Ray)

I am the owner and administrator of DialMe.com. I write Tutorials for Boonex Dolphin as well as tips and resources surrounding website programming and development. I enjoy working with WordPress, SEO, and Web Hosting / Servers. I also maintain a WordPress Blog here on this site where you will find a variety of technology and webmaster resources.

Sponsored Links