From ArchWiki
Revision as of 17:51, 22 May 2013 by Flu (talk | contribs) (formatted)
Jump to: navigation, search

rtGui is a web based front end for rTorrent - the Linux command line BitTorrent client. It is written in PHP and uses XML-RPC to communicate with the rTorrent client.

Set up

First install dependencies: rtorrent, apache, php, php-apache and mod_scgiAUR.

Apache configuration

Add mod_scgi module to /etc/httpd/conf/httpd.conf in LoadModule section:

  LoadModule scgi_module modules/mod_scgi.so

Append at the end of the file:

 LoadModule php5_module modules/libphp5.so
 Include conf/extra/php5_module.conf
 SCGIMount /RPC2

PHP configuration

Uncomment these extensions in /etc/php/php.ini:


Change the value of these settings from off to on:

 allow_url_fopen = On
 allow_url_include = On

rTorrent configuration

You need to adjust the .rtorrent.rc and add the following line:

 scgi_port = localhost:5000

Restart Apache

# systemctl rstart httpd.service

rtGui installation

Download and extract rtgui from source, then copy and edit the config.php:

 cd /srv/http/
 tar xvzf rtgui-x.x.x.tgz 
 cd rtgui/
 cp config.php.example config.php 
 nano config.php