Difference between revisions of "Rtgui"

From ArchWiki
Jump to: navigation, search
m (add ja link)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{DISPLAYTITLE:rtGui}}
 
{{DISPLAYTITLE:rtGui}}
[[Category:Internet Applications]]
+
[[Category:Internet applications]]
 +
[[ja:Rtgui]]
 
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 [[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
+
LoadModule scgi_module modules/mod_scgi.so
  
== Apache configuration ==
+
Append at the end of the file:
  
'''Adding the mod_scgi module to httpd.conf'''
+
LoadModule php5_module modules/libphp5.so
 +
Include conf/extra/php5_module.conf
 +
SCGIMount /RPC2 127.0.0.1:5000
  
  $ sudo nano /etc/httpd/conf/httpd.conf
+
=== PHP configuration ===
  
Find the LoadModule section and add:
+
Uncomment these extensions in {{ic|/etc/php/php.ini}}:
  
  LoadModule scgi_module modules/mod_scgi.so
+
extension=sockets.so
 +
extension=xmlrpc.so
  
At the end of the file:  
+
Change the value of these settings from off to on:
  
  LoadModule php5_module modules/libphp5.so
+
allow_url_fopen = On
  Include conf/extra/php5_module.conf
+
allow_url_include = On
  SCGIMount /RPC2 127.0.0.1:5000
+
  
== PHP configuration ==
+
=== rTorrent configuration ===
  
'''PHP adjust per php.ini'''
+
You need to adjust the {{ic|.rtorrent.rc}} and add the following line:
  
  $ sudo nano /etc/php/php.ini
+
scgi_port = localhost:5000
  
uncomment these extensions
+
=== Restart Apache ===
  
  extension=sockets.so
+
# systemctl restart httpd.service
  extension=xmlrpc.so
+
  
change the value of these settings from off to on 
+
=== rtGui installation ===
  
  allow_url_fopen = On
+
Download and extract rtgui from source:
  allow_url_include = On
+
  
== rTorrent configuration ==
+
cd /srv/http/
 +
tar xvzf rtgui-x.x.x.tgz
 +
cd rtgui/
 +
cp config.php.example config.php
  
You need to adjust the '''.rtorrent.rc''' and add the following line
+
Modify {{ic|config.php}} to suit your needs
 
+
  scgi_port = localhost:5000
+
 
+
== Restart Apache ==
+
 
+
  $ sudo /etc/rc.d/httpd restart
+
 
+
== 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
+

Latest revision as of 12:41, 7 January 2016

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 restart httpd.service

rtGui installation

Download and extract rtgui from source:

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

Modify config.php to suit your needs