Rutorrent + rtorrent Installation Guide on CentOS 6.4

From Leo's Notes
Last edited on 1 September 2019, at 06:21.

This guide will briefly go over the steps needed to get rTorrent and RUTorrent installed with Apache as the backing web server on CentOS 6.4.

Installing rtorrent

There is a package for rTorrent on the EPEL repo.

yum install epel-release
yum install rtorrent

Configuring rTorrent

You will need to configure rTorrent using the .rtorrent.rc file in order to enable scgi. Your .rtorrent.rc should at least have:

scgi_port = 127.0.0.1:5000


Installing ruTorrent

ruTorrent requires mod_scgi on apache in order for ruTorrent to talk to rTorrent. Unfortunately, it doesn't seem like EPEL or RPMForge has a prebuilt package for mod_scgi. The only way to get it installed is to compile it from source, which is rather easy.

Prerequisites

We need the gcc compiler along with the apache development tools.

yum install gcc httpd-devel

Compiling

Get the latest version of scgi, and compile it.

wget http://python.ca/scgi/releases/scgi-1.14.tar.gz
tar -xzf scgi-1.*.tar.gz
cd scgi-1.14/apache2
make
make install

The module should be installed at /usr/lib64/httpd/modules/mod_scgi.so at this point.

Configuring Apache

Create a new configuration file at /etc/httpd/conf.d/scgi.conf with the following contents:

LoadModule scgi_module modules/mod_scgi.so
SCGIMount /RPC2 127.0.0.1:5000

Restart apache.

Installing ruTorrent

Copy the ruTorrent source to a publicly accessible location. Ensure that the configuration file at /conf/config.php has the scgi server/port configured to point to localhost:5000.