Jump to content


Submitter

SUPPORT TOPIC File Information

  • Submitted: Apr 22 2011 12:13 AM
  • Last Updated: Apr 22 2011 12:13 AM
  • File Size: 4.86KB
  • Views: 3212
  • Downloads: 61
  • Supported IPS Software Version: 3.1.4

Download IP.Board Crontab Generator 1.0

* * * * * 1 Votes



This script will generate a file that you can use to add IP.Board's tasks to your server's crontab.  Simply upload it to your forum's root directory and then navigate to the page in a browser.

This script won't disable  the tasks in IP.Board, so you will need to do that manually if you  wish.  It should only add tasks that are currently enabled and not  locked.  If new tasks are added to the scheduler (in a future update, or if you  install a new application), you will need to run this again if you wish  to add them.  Just be sure that you don't create duplicates!

Disclaimer:
Create a backup of your current crontab (use "crontab -l > cron_backup.txt" over SSH) as well as your files and database before using this script.  Use at your own risk.  If on shared hosting, check if your host has a minimum interval for cron jobs and modify the file accordingly, as IP.Board has tasks that will run every 5 minutes or even more often.
  You should have some knowledge of the Linux shell before using this script or cron jobs, as it has the ability to negatively affect your server's performance if used incorrectly.

Recommended Usage:
If you run the script without any options, it'll create a text file  named "ipb_crontab.txt".  You can then reference this file to manually  add the cron jobs via cPanel or "crontab -e" over SSH.  This is the recommended usage.

Alternate Usage:
The script supports adding the cron tasks for you (with "?execute=yes"),  but I highly recommend adding them manually to be on the safe side.  If  on shared hosting, you should definitely check with your host before  using this method, as it uses PHP's exec() function, which some hosts may consider a security risk.  Again, this is not recommended.  Absolutely do not run the script more than once (ever) if you use this method, as it will create duplicate tasks in your crontab, which can hurt the performance of your server and run tasks too often.  If you do use this method, check your crontab afterwards to ensure that everything looks okay.

After Usage (Security):
After you are done using this script, delete or move the ipb_cron.php and ipb_crontab.txt files, as leaving them would be a high security risk.  (Depending on how you ran the script, ipb_crontab.txt may have been automatically deleted.)





Other files you may be interested in ..