https://github.com/eustasy/phoenix
A lightweight BitTorrent Tracker written in PHP with an SQL backend.
https://github.com/eustasy/phoenix
bittorrent bittorrent-tracker cron lamp lamp-stack lemp lemp-stack php
Last synced: about 1 month ago
JSON representation
A lightweight BitTorrent Tracker written in PHP with an SQL backend.
- Host: GitHub
- URL: https://github.com/eustasy/phoenix
- Owner: eustasy
- License: mit
- Created: 2014-12-25T15:18:40.000Z (almost 11 years ago)
- Default Branch: main
- Last Pushed: 2024-03-06T21:18:51.000Z (over 1 year ago)
- Last Synced: 2024-05-02T04:37:05.122Z (over 1 year ago)
- Topics: bittorrent, bittorrent-tracker, cron, lamp, lamp-stack, lemp, lemp-stack, php
- Language: PHP
- Homepage:
- Size: 336 KB
- Stars: 16
- Watchers: 4
- Forks: 5
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Phoenix v.3.1.5
[](https://github.com/eustasy/phoenix/actions/workflows/normal.yml)
[](https://codeclimate.com/github/eustasy/phoenix)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
* A PHP compatible web-server.
* PHP >= 5.4.0 with Core, SimpleXML, date, filter, json, mysqli, pcre, & standard extensions. (Generated using [PHP CompatInfo](http://php5.laurent-laville.org/compatinfo/)
* A MySQLI supported database, such as MySQL >= 4.1#### Recommended
* The latest version of Nginx ( >= 1.10.0 with HTTP/2 )
* [The latest version of PHP](http://php.net/supported-versions.php)
* The latest version of MariaDB ( >= 10 )### Install Guide
1. Copy `_settings/phoenix.default.php` to `_settings/phoenix.custom.php`
2. Edit the variables in `_settings/phoenix.custom.php`
2. 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
```