Cron Jobs Reference

Cron Jobs are specific lines of code called commands which perform a specific function based on a set time parameter. The following guide will help you set various cron jobs for the Sabali Co features.

The features that possibly require cron jobs based on your server configuration are;

[1] PHP Search Engine

[2] Sitemap Generator

[3] Live Chat Logs

Also included are two cron jobs that can create automatic backups and debug file permissions across your server.

Time Parameters

The time parameter variable is designated by assigning values to five specific values

[1] Hour

[2] Minute

[3] Day

[4] Month

[5] Weekday

Common Settings

Once per Minute = * * * * *

Once per Five Minutes = */5 * * * *

Once per Fifteen Minutes = */15 * * * *

Twice per Hour = 0,30 * * * *

Once per Hour = 0 * * * *

Twice per Day = 0 0,12 * * *

Once per Day = 0 0 * * *

Once per Week = 0 0 * * 0

1st & 15th of the Month = 0 0 1,15 * *

Once per Month = 0 0 1 * *

Once per Year = 0 0 1 1 * *

Automatic Backup Cron Job

*Recommended setting = once per month

0 0 1 * *

/usr/local/bin/php /home/sabalico/fullbackup.php

Debug File Permissions Cron Job

*Recommended setting = once per hour

0 * * * *

cd /home/sabalico/public_html ; find -type f | xargs chmod 644 ; find -type d | xargs chmod 755 ; chmod 750 . -c

File Permissions Settings

Root Folder (will need to manually set via code editor or cPanel file manager)

/ home / [username] => 711

Regular Folder = 755

Regular File = 644

Writeable Folder = 777

Writeable File = 777

Search Folder Permissions Cron Job

*Recommended setting = once per five minutes

*/5 * * * *

cd /home/sabalico/public_html/search/ && echo Success find -type f | xargs chmod 777 ; find -type d | xargs chmod 777 ; chmod 777 . -c

Sitemaps Folder Permissions Cron Job

*Recommended setting = once per hour

0 * * * *

cd /home/sabalico/public_html/sitemaps/ && echo Success find -type f | xargs chmod 777 ; find -type d | xargs chmod 777 ; chmod 777 . -c