Oxwall Software Cron Configuration Guide

Cron Jobs setup via Cpanel.

To have your site working properly you have to create a cron job to run ow_cron/run.php every minute. This can be done by adding the following line via Cpanel/Cron Jobs:

/usr/local/bin/php /home/your-site-root-dir/public_html/ow_cron/run.php

Note: The Cron commands may vary depending on the server configuration.

Cron Jobs setup via SSH.

- Login to your server via SSH

- Run cd [path-to-your-Oxwall-homedir]/ow_cron command to enter the Cron folder

- Run pwd command

- You will see the path to the Cron folder (e. g. /home/yoursite/public_html/ow_cron)

- Run which php command

- You will see the path to PHP (e. g. /usr/local/bin/php)

- Run crontab -e command

- This will open the crontab file editor

- To make changes to this file, press the i key on the keyboard

- In the bottom left corner you will see the following message: insert

You should make the Cron commands based on the paths to php and cron folder. They should look similar to the command given below:

* * * * * /usr/local/bin/php /home/your-site-root-dir/public_html/ow_cron/run.php

* - the time when Cron runs

/usr/local/bin/php - path to PHP

/home/your-site-root-dir/public_html/ow_cron/ - path to Cron

run.php - Cron file

After you inserted the commands, press the Escape button. The Insert message will disappear.

Type : wq - this command rewrites the Cron document and closes it.

Don't exit SSH if you want to check whether Cron has been set up correctly. Here is how you can do that:

Copy your command (for example, /usr/local/bin/php /home/yoursite/public_html/run.php) and paste it. Click Enter.

If there are no errors - the following line appears:

[root@server cron]#

This means the Cron Jobs have been set up properly.

You can find more information on Cron jobs here: http://en.wikipedia.org/wiki/Cron

Also, here are some useful articles about Cron jobs:

install/cron.txt · Last modified: 2011/11/07 06:19 by aka_le_mulder
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki