Difference between revisions of "Rtgui"

From ArchWiki
Jump to: navigation, search
m (formatted)
Line 3: Line 3:
 
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.  
 
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.  
  
== Installing ==
+
== Set up ==
  
'''Installing via pacman'''
+
First [[pacman|install]] dependencies: {{Pkg|rtorrent}}, {{Pkg|apache}}, {{Pkg|php}}, {{Pkg|php-apache}} and {{AUR|mod_scgi}}.
  
  $ pacman -S rtorrent apache php php-apache
+
=== Apache configuration ===
  
The Apache module mod_scgi is currently only available through the AUR. You could build it yourself or install it with a AUR helper such as yaourt.
+
Add mod_scgi module to {{ic|/etc/httpd/conf/httpd.conf}} in ''LoadModule'' section:
 
+
  $ yaourt -S mod_scgi
+
 
+
== Apache configuration ==
+
 
+
'''Adding the mod_scgi module to httpd.conf'''
+
 
+
  $ sudo nano /etc/httpd/conf/httpd.conf
+
 
+
Find the LoadModule section and add:
+
  
 
   LoadModule scgi_module modules/mod_scgi.so
 
   LoadModule scgi_module modules/mod_scgi.so
  
At the end of the file:  
+
Append at the end of the file:  
  
 
   LoadModule php5_module modules/libphp5.so
 
   LoadModule php5_module modules/libphp5.so
Line 29: Line 19:
 
   SCGIMount /RPC2 127.0.0.1:5000
 
   SCGIMount /RPC2 127.0.0.1:5000
  
== PHP configuration ==
+
=== PHP configuration ===
 
+
'''PHP adjust per php.ini'''
+
 
+
  $ sudo nano /etc/php/php.ini
+
  
uncomment these extensions  
+
Uncomment these extensions in {{ic|/etc/php/php.ini}}:
  
 
   extension=sockets.so
 
   extension=sockets.so
 
   extension=xmlrpc.so
 
   extension=xmlrpc.so
  
change the value of these settings from off to on
+
Change the value of these settings from off to on:
  
 
   allow_url_fopen = On
 
   allow_url_fopen = On
 
   allow_url_include = On
 
   allow_url_include = On
  
== rTorrent configuration ==
+
=== rTorrent configuration ===
  
You need to adjust the '''.rtorrent.rc''' and add the following line  
+
You need to adjust the {{ic|.rtorrent.rc}} and add the following line:
  
 
   scgi_port = localhost:5000
 
   scgi_port = localhost:5000
  
== Restart Apache ==
+
=== Restart Apache ===
  
  $ sudo /etc/rc.d/httpd restart
+
# systemctl rstart httpd.service
  
== rtGui installation ==
+
=== rtGui installation ===
  
Download and extract rtgui from source, then copy and edit the config.php  
+
Download and extract rtgui from source, then copy and edit the {{ic|config.php}}:
  
 
   cd /srv/http/
 
   cd /srv/http/

Revision as of 17:51, 22 May 2013

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 127.0.0.1:5000

PHP configuration

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

 extension=sockets.so
 extension=xmlrpc.so

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