Skocz do zawartości
"Idzie nowe..." - o zmianach i nie tylko ×
Przeniesienie zakupów z IPS Marketplace / Moving bought items from IPS Marketplace ×

[community.invisionpower.com - pliki] IP.Board Crontab Generator


Rekomendowane odpowiedzi

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.)

Pobierz plik

Odnośnik do komentarza
Udostępnij na innych stronach

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...

Powiadomienie o plikach cookie

Umieściliśmy na Twoim urządzeniu pliki cookie, aby pomóc Ci usprawnić przeglądanie strony. Możesz dostosować ustawienia plików cookie, w przeciwnym wypadku zakładamy, że wyrażasz na to zgodę.