eustasy / Phoenix

A lightweight BitTorrent Tracker written in PHP with an SQL backend.
MIT License
18 stars 6 forks source link
bittorrent bittorrent-tracker cron lamp lamp-stack lemp lemp-stack php

Phoenix v.3.1.5

Normal Code Climate

A lightweight BitTorrent Tracker written in PHP, with an SQL backend, for people that just want to host a tracker, not the torrent listing site.

Installation

What Do You Need?

Required

Recommended

Install Guide

  1. Copy _settings/phoenix.default.php to _settings/phoenix.custom.php
  2. Edit the variables in _settings/phoenix.custom.php
  3. Upload all the .php and .sh files to your server.
  4. Load admin.php in your browser and run the Setup option.

Configuration

Configuration should take place in _settings/phoenix.custom.php, NOT _settings/phoenix.default.php. Phoenix will attempt to use the default configuration if yours is missing.

Cron (Automating Maintenance)

  1. Configure _cron/hourly/backup-database.sh by changing the path in the second line, and the username, password, database, and file in the last three.
  2. Edit _settings/phoenix.custom.php and set $settings['clean_with_cron'] to true instead of false. You can also set $settings['clean_with_requests'] to 0 to save processing time.
  3. Edit your crontab with crontab -e, and add a crontab like the following. You can edit the times, and should make sure the paths are correct by running the commands after the asteriks.
    15 * * * * php ~/phoenix/_cron/hourly/clean-and-optimize.php
    30 * * * * ~/phoenix/_cron/hourly/backup-database.sh