Difference between revisions of "RTorrent/WTorrent"

From ArchWiki
Jump to: navigation, search
(FAQ: Out of date and not directly related to WTorrent.)
(21 intermediate revisions by 10 users not shown)
Line 1: Line 1:
[[Category:Internet Applications]]
{{Article summary start}}
{{Article summary text|This article covers the installation of the wTorrent program as well as its potential configuration with [[Lighttpd]] and [[Apache]].}}
{{Article summary end}}
'''[http://www.wtorrent-project.org/ wTorrent]''' is a web interface to rtorrent, a high performance console based BitTorrent client. It uses rtorrent's build-in xmlrpc server to communicate with it.
#redirect [[ArchWiki:Archive]]
wTorrent is programmed in php using Smarty templates and XMLRPC for PHP library. wTorrent also uses javascript for rendering the page with AJAX, Scriptaculous and ShadedBorders.
== wTorrent with Apache ==
=== Installation ===
[[pacman|Install]] the dependencies: {{Pkg|rtorrent}}, {{Pkg|apache}}, {{Pkg|php}}, {{Pkg|php-apache}}, {{Pkg|php-sqlite}}, {{Pkg|php-curl}}, {{AUR|mod_scgi}}.
{{Note|Wtorrent is now available in the [[AUR]] with the {{AUR|wtorrent-svn}} package.}}
==== mod_scgi ====
After you install the packages you need to install the mod_scgi module for Apache:
$ wget http://quixote.python.ca/releases/scgi-1.13.tar.gz
$ wget http://python.ca/scgi/releases/scgi-1.13.tar.gz
$ tar xf scgi-1.13.tar.gz
$ cd scgi-1.13/apache2
$ sudo apxs -i -c mod_scgi.c
=== Configuration ===
==== Adding mod_scgi to httpd.conf ====
Edit {{ic|/etc/httpd/conf/httpd.conf}}.
Locate the {{ic|LoadModule}} lines and add:
LoadModule scgi_module modules/mod_scgi.so
Add to the end of the file:
Save the file and quit.
==== Enabling SQLite in php.ini ====
Edit {{ic|/etc/php/php.ini}}.
Locate & un-comment the following:
PHP is practically available out of the box now.
* Add these lines in /etc/httpd/conf/httpd.conf:
NOTE: Place them at the end of "LoadModule" list or bottom of the file.
LoadModule php5_module modules/libphp5.so
Include conf/extra/php5_module.conf
* Restart the Apache service to make changes take effect (as root):
Restart Apache
$ sudo /etc/rc.d/httpd restart
==== Final steps ====
Add the following to your {{ic|~/.rtorrent.rc}}:
scgi_port = localhost:5000
Get the latest version of wtorrent & install to your web directory:
# cd /srv/http
# svn co http://svn.wtorrent-project.org/wtorrent/trunk/wtorrent/
# chmod -R 777 wtorrent
Start rtorrent (most common to open a screen and type {{ic|rtorrent}})
Point your browser to http://localhost/wtorrent/install.php and add a username & password. After you click the "Try configuration" and it gives you no errors click the "Save configuration"
== wTorrent with lighttpd ==
=== Installation ===
Install {{Pkg|rtorrent}}, {{Pkg|lighttpd}}, {{Pkg|php}}, {{Pkg|sqlite3}}.
== FAQ ==
'''1. Why, when I turn to http://localhost/wtorrent/install.php, it returns not the wtorrent setup page but a plain text page?'''
You should check whether or not php is working on your apache. Add following lines to /etc/httpd/conf/httpd.conf:
In LoadModule Section, add:
LoadModule php5_module modules/libphp5.so
In Supplemental configuration section add:
# php5
Include conf/extra/php5_module.conf
And make sure that
is added after the Supplemental configuration section.

Latest revision as of 14:42, 23 August 2017

Redirect to: