RuTorrent - ArchWiki

# RuTorrent

This article or section is a candidate for merging with Rutorrent with lighttpd.

Notes: Same topic. (Discuss in Talk:Rutorrent with lighttpd#Merge)

ruTorrent is a web interface to rTorrent (a console based BitTorrent client). It uses rTorrent's built-in XML-RPC server to communicate with it.

It is lightweight, highly extensible, and is designed to look similar to uTorrent.

## Installation

Install rutorrentAUR from the AUR. If you want to use the development version install rutorrent-gitAUR.

## Web Server Configuration

### Apache

Install and configure Apache with PHP according to the LAMP page.

- Edit the open_basedir value in /etc/php/php.ini to include:

    /etc/webapps/rutorrent/conf/:/usr/share/webapps/rutorrent/php/:/usr/share/webapps/rutorrent/

Install mod_scgiAUR from the AUR.

- Load the SCGI module in `/etc/httpd/conf/httpd.conf`:

    LoadModule scgi_module modules/mod_scgi.so

- Enable the rTorrent XMLRPC interface: rTorrent#XMLRPC interface

- Enable SCGI on the port you chose for rTorrent by adding this to `/etc/httpd/conf/httpd.conf`:

    SCGIMount /RPC2 127.0.0.1:5000

- Lastly, add the ruTorrent folder to `/etc/httpd/conf/httpd.conf` with something similar to this anywhere after the inital </Directory>:

    <IfModule alias_module>
      Alias /rutorrent /usr/share/webapps/rutorrent
      <Directory "/usr/share/webapps/rutorrent">
        Order allow,deny
        Allow from all
      </Directory>
    </IfModule>

For Apache 2.4 the access control would be:

    <IfModule alias_module>
      Alias /rutorrent /usr/share/webapps/rutorrent
      <Directory "/usr/share/webapps/rutorrent">
        Require all granted
      </Directory>
    </IfModule>

Note: You should enable authentication through Apache if your site is public.

### Nginx

- Create a link from your web root to rutorrent

    ln -s /usr/share/webapps/rutorrent/ /usr/share/nginx/html/rutorrent

- Edit the open_basedir value in /etc/php/php.ini to include:

    /etc/webapps/rutorrent/conf/:/usr/share/webapps/rutorrent/php/:/usr/share/webapps/rutorrent/

- Enable the rTorrent XMLRPC interface: rTorrent#XMLRPC interface

- Add following location to your nginx configuration:

               location /RPC2 {
                   include scgi_params;
                   scgi_pass localhost:5000;
               }

- Restart nginx:

    # systemctl restart nginx

- You can now access ruTorrent at http://127.0.0.1/rutorrent

## ruTorrent Configuration

See upstream wiki here. By default the configuration files are symlinked to `/etc/webapps/rutorrent/conf`.

## See Also

- LAMP
- RTorrent

## External Links

- https://github.com/Novik/ruTorrent/wiki
- http://httpd.apache.org/docs/2.2/configuring.html

Category:

- Internet applications

Hidden category:

- Pages or sections flagged with Template:Merge