Advertisement
Guest User

Untitled

a guest
Jul 11th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.02 KB | None | 0 0
  1. *********************************************************************************
  2. * *
  3. * INSTALLATION *
  4. * *
  5. *********************************************************************************
  6.  
  7. //--------- Dependencies --------------------------------------------------------
  8.  
  9. In order to run Gazelle, you need the following software:
  10. - Some sort of httpd (we recommend apache)
  11. - MySQL
  12. - memcached
  13.  
  14. And the following php extensions:
  15. - GD (for the captcha and the similar artist map)
  16. - mb_string (multibyte strings)
  17. - mcrypt (for encrypting cookies)
  18. - memcache (interface to connect with memcached)
  19. - mysqli (because the ordinary mysql libraries just don't cut it)
  20.  
  21. For php, TURN MAGIC_QUOTES_GPC OFF.
  22.  
  23. At the time of this writing (July 2008), it is easier to install memcached and
  24. its php extension on Debian-based distros than Red Hat-based distros. For this
  25. reason, we recommend running your server on Debian stable.
  26.  
  27. There is more information on configuring the software mentioned above in the
  28. 'software' file. Once you have it all installed and running, you can move on to
  29. configuring Gazelle.
  30.  
  31.  
  32. //--------- Installation --------------------------------------------------------
  33.  
  34. Gazelle comes with an installation script, so we suggest you run that. It's
  35. located in /install/index.php, so open up your web browser and run the script.
  36. The script will set up your configuration file and your database, and make
  37. a new user.
  38.  
  39. *** WARNING ***
  40. Running the script again will overwrite your database - when you've finished
  41. running the script, delete the /install directory. You can manually alter any
  42. settings it makes in /classes/config.php.
  43.  
  44.  
  45. //--------- schedule.php cron job -----------------------------------------------
  46.  
  47. Every 15 minutes, schedule.php should be run by cron. This performs all sorts of
  48. black magic - deleting tags, managing ratio watch, building the torrent_hash
  49. table (this will become clearer once you read the 'database' file), etc. It is
  50. split into 4 sections:
  51. - Run every time
  52. - Run every hour
  53. - Run every day
  54. - Run twice per month, on the 8th and the 22nd
  55.  
  56. It keeps track of when it should run the last 3 sections by reading from the
  57. 'schedule' table in the database.
  58.  
  59. Additionally, schedule.php spits out debugging information (which sections it
  60. ran, and how long it took to build the torrent_hash table). We redirect this
  61. output into a log, so we can debug it if things go horribly wrong.
  62.  
  63. In order for this magic to run, you need to set up a cron job. So crontab -e,
  64. and add this:
  65.  
  66. 00,15,30,45 * * * * php /path/to/schedule.php SCHEDULE_KEY >> /path/to/schedule.log
  67.  
  68. Where SCHEDULE_KEY is the SCHEDULE_KEY defined in /classes/config.php.
  69.  
  70. schedule.php can also be run manually, by anyone with the admin_schedule
  71. permission.
  72.  
  73.  
  74.  
  75. //--------- Finishing up --------------------------------------------------------
  76.  
  77. Finally, make sure that your SESSION_DIR is readable by your script. This is for
  78. detecting the number of users currently online.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement