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[edit]

There is a package for rTorrent on the EPEL repo.

yum install epel-release
yum install rtorrent

Configuring rTorrent[edit]

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 =

Installing ruTorrent[edit]

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.


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

yum install gcc httpd-devel


Get the latest version of scgi, and compile it.

tar -xzf scgi-1.*.tar.gz
cd scgi-1.14/apache2
make install

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

Configuring Apache[edit]

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

LoadModule scgi_module modules/

Restart apache.

Installing ruTorrent[edit]

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.