wTorrent and RUtorrent: web UI for rtorrent

RuTorrent Installation

ruTorrent is preferred WebUI for rtorrent. Its installation is as simple as unpacking downloaded tarballs and changing a single parameter.

I chose the following components from download area (get all in a single package):

  • rtorrent - the core of ruTorrent,
  • rpc - with this plugin client the server php side of ruTorrent performs direct access to rtorrent via xml-rpc; without it you would have to configure a SCGI mount like for wTorrent, and this mount should be visible from client machine, which is very insecure;
  • create - allows to create torrent files remotely;
  • datadir - allows to check default torrent directory to a custom location;
  • erasedata - allows to delete torrent data together with torrent;
  • ratio - allows to control ratio limits for torrents or torrent groups;
  • rss - allows to publish torrent upload/download events in form of rss;
  • scheduler - allows reconfigure rtorrent bandwidth limit schedule from web interface;
  • trafic - monitors and visualizes rtorrent traffic over time;

The following plugins were not chosen:

Configuration... Edit config.php and change rtorrent connection parameters:

$scgi_port = 8501;
$scgi_port = 5000;

[Here will follow instructions on tighter integratation with rtorrent...]

wTorrent Installation

Download wTorrent zip from wTorrent download page and extract into /var/www/bittorrent/wtorrent. Or, install r99 from svn (mirror):

mkdir -p /var/www/bittorrent
cd /var/www/bittorrent
svn co -r99 svn://wtorrent-project.org/repos/trunk/wtorrent
chown -R apache:apache /var/www/bittorrent/wtorrent

Install apache and php prerequisites

yum install mod_scgi php-xmlrpc

Create apache configuration snippet /etc/httpd/vhosts/bittorrent.conf

SCGIMount /RPC2 127.0.0.1:8501
<Location /RPC2>
Order deny,allow
Allow from 127.0.0.1 192.168.1.1
Deny from all
</Location>
<VirtualHost *:80>
ServerName bt.ourdom.com:80
DocumentRoot /var/www/dummy
Include vhosts/common.inc
RewriteEngine on
RewriteRule    ^/(.*)$  https://bt.ourdom.com/$1  [L,R]
</VirtualHost>
<VirtualHost *:443>
ServerName bt.ourdom.com:443
DocumentRoot /var/www/bittorrent
Include vhosts/ssl.inc
<Location />
Include vhosts/authorize.inc
</Location>
</VirtualHost>

I deliberately put "/RPC2" location outside the virtual "bt" server. It becomes shared by other virtual servers, in particular by "localhost", which does not redirect to a secure location (the wTorrent internal http access does not support ssl and redirections).

Point your browser to http://bt.ourdom.com/wtorrent/install.php and set a few parameters

rTorrent scgi host:                  localhost
rTorrent scgi port:                  80
rTorrent scgi folder:                /RPC2
Enable auth for the scgi folder:     NO
Folder to save uploaded torrents:    torrents/
Folder where wTorrent is:            /var/www/bittorrent/wtorrent/
Default folder to save torrent data: /var/www/bittorrent/downloads/

Remove or rename install.php

Attachments

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
To prevent automated spam submissions leave this field empty.