Today I am experimenting on setting up a torrent tracker. Yes, your very own torrent tracker. For setting up your very own personal bit torrent tracker you need the following things,
(I setup tracker on a dedicated server with root access, you can setup it in shared environment but this is not recommended due to tracker will use server resources and this will increase the load on server)
- Linux OS
- LAMP Server or any other server solution. I recommend LAMP Server
- BtiTracker
- SSH access to server
Here I am considering that you have a fresh server with no content on it. Because we need following packages installed on server which we’ll install during setup. These packages can be installed by following tutorial too.
- Apache
- MySQL
- PHP
Connect with server using SSH client. Now follow these steps.
cd / –> Enter
yum install httpd mysql-server php php-mysql php-mbstring php-gd –> Enter
This will install Apache, MySQL and PHP with needed php extensions.
Now start the Apache and MySQL server
service httpd start –> Enter
service mysqld start –> Enter
chkconfig –levels 235 httpd on –> Enter
chkconfig –levels 235 mysqld on –> Enter
Now login to MySQL server by typing following command.
mysql -u root -p –> Enter
Like following screen
[root@localhost test]# mysql -u root -p
Enter password: –> Enter (because we do not have any password yet)
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 60 Server version: 5.0.45 Source distribution
Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the buffer.
mysql>
Now type the following command to set the MySQL password for root.
SET PASSWORD FOR ‘root’@'localhost’ = password(‘newpassword’);
We have everything ready. Now let’s goto install BtiTracker. Switch to following directory by typing this command,
cd /var/www/html/ –> Enter
mkdir tracker –> Enter
cd tracker –> Enter
Now download the BtiTracker compressed file from SourceForge.
wget http://sourceforge.net/projects/btit-tracker/files/BtiTracker/BtiTracker%201.4.8/Btit_148.zip/download –> Enter
Now unzip the archive by following command,
unzip Btit_148.zip –> Enter
Now switch to Btit directory
cd Btit_148 –> Enter
For installation we need the following files chmoded to 777. Directly copy paste following commands in your ssh client
chmod 777 /include/config.php
chmod 777 /addons/guest.dat
chmod 777 torrents
chmod 777 badwords.txt
chmod 777 chat.php
Now come to gui side. Open up your browser type http://(your_ip_address_or_url)/tracker/Btit_148
Click Next
Congratulations! No Errors Found! you can safely to Continue >>
Setup the tracker as you need. Then click Next >>
Database settings has been saved. Now Click Next >>
Click Next to import MySQL dump file
Congratulations! Your dump file imported successfully. Please Click Next >>
Signup as Administrator and click Sign up! (PRESS ONLY ONCE) to continue the process
admin user has been added. Click next to continue
Congratulations! You’ve successfully installed your very own bit-torrent tracker. Don’t forget to remove the install directory and install.me file. Otherwise it will lead your tracker to serious problems.
Thanks for your time. If you like my tutorial then don’t hesitate to leave comments for me.
















This is without doubt one of the most fascinating blogs I’ve seen. It’s so simple to tune out, but there is honestly some supreme material online, and I believe your website is one of the few!
It’s a wrong idea to give the full permissions (777).
Just give it to www-data for example
# chown -R www-data.www-data MyFile
You are right but we need 777 permission while installation on following files and directories.
/include/config.php
/addons/guest.dat
torrents
badwords.txt
chat.php
After installation we can only switch back config.php to permission (444). Other files and directories we need global writeable to run tracker