The following are cron scripts required by the core of the script for things like account downgrades, redundant file deletes etc. These processes used to be called via the website when someone visited the homepage, but it can have a negative impact on performance as your site grows.
0 0 * * * php /path/to/your/yetishare/app/tasks/auto_prune.cron.php >> /dev/null 2>&1
0 0 * * * php /path/to/your/yetishare/app/tasks/create_internal_notifications.cron.php >> /dev/null 2>&1
0 * * * * php /path/to/your/yetishare/app/tasks/delete_redundant_files.cron.php >> /dev/null 2>&1
0 0 * * * php /path/to/your/yetishare/app/tasks/downgrade_accounts.cron.php >> /dev/null 2>&1
*/5 * * * * php /path/to/your/yetishare/app/tasks/process_file_queue.cron.php >> /dev/null 2>&1
0 1 * * * php /path/to/your/yetishare/app/tasks/create_email_notifications.cron.php >> /dev/null 2>&1
* * * * * php /path/to/your/yetishare/app/tasks/process_server_resources.cron.php >> /dev/null 2>&1
* * * * * php /path/to/your/yetishare/app/tasks/process_server_monitoring.cron.php >> /dev/null 2>&1
* * * * * php /path/to/your/yetishare/app/tasks/process_remote_file_downloads.cron.php >> /dev/null 2>&1
0 3 * * * php /path/to/your/yetishare/app/tasks/delete_redundant_files.cron.php >> /dev/null 2>&1
*/5 * * * * php /path/to/your/yetishare/app/tasks/process_file_queue.cron.php >> /dev/null 2>&1
* * * * * php /path/to/your/yetishare/app/tasks/process_server_resources.cron.php >> /dev/null 2>&1
Note: Replace /path/to/your/yetishare/ with your full server path to your yetishare installation.
If you're using cPanel you can set these up via the 'crons' icon when you log into cPanel. For more information see the following url:
- http://www.siteground.com/tutorials/cpanel/cron_jo...
If you have SSH access to your server(s) you can copy and paste the above (after changing the paths) into your server crontab. To edit the crontab:
crontab -e
Your crons should now be running.
Some things to check if you think you're having issues:
/etc/init.d/crond restart
0 3 * * * /usr/local/lib/php /path/to/your/yetishare/admin/tasks/delete_redundant_files.cron.php >> /dev/null 2>&1
/* main configuration file for script */ define("_CONFIG_SITE_HOST_URL", ""); define("_CONFIG_SITE_FULL_URL", "");
/* main configuration file for script */ define("_CONFIG_SITE_HOST_URL", "fs1.yoursite.com"); define("_CONFIG_SITE_FULL_URL", "fs1.yoursite.com");Replace fs1.yoursite.com with your file server domain name.
0 0 * * * php /path/to/your/yetishare/admin/tasks/auto_prune.cron.php >> /dev/null 2>&1
0 0 * * * php /path/to/your/yetishare/admin/tasks/create_internal_notifications.cron.php >> /dev/null 2>&1
0 * * * * php /path/to/your/yetishare/admin/tasks/delete_redundant_files.cron.php >> /dev/null 2>&1
0 0 * * * php /path/to/your/yetishare/admin/tasks/downgrade_accounts.cron.php >> /dev/null 2>&1
*/5 * * * * php /path/to/your/yetishare/admin/tasks/process_file_queue.cron.php >> /dev/null 2>&1
0 1 * * * php /path/to/your/yetishare/admin/tasks/create_email_notifications.cron.php >> /dev/null 2>&1
* * * * * php /path/to/your/yetishare/admin/tasks/process_remote_file_downloads.cron.php >> /dev/null 2>&1
0 3 * * * php /path/to/your/yetishare/admin/tasks/delete_redundant_files.cron.php >> /dev/null 2>&1
*/5 * * * * php /path/to/your/yetishare/admin/tasks/process_file_queue.cron.php >> /dev/null 2>&1