Difference between revisions of "WTorrent"

From ArchWiki
Jump to: navigation, search
m (FAQ template, style fixes.)
(improve install link as recommended in Help:Style#Package management instructions)
 
(13 intermediate revisions by 8 users not shown)
Line 1: Line 1:
[[Category:Internet Applications]]
+
[[Category:Internet applications]]
{{Article summary start}}
+
{{out of date|1=The project homepage and the SF page too time out on 6.4.14. Similar was noted in  {{AUR|wtorrent-svn}}{{Broken package link|{{aur-mirror|wtorrent-svn}}}} comments two weeks ago. Is the project still existant?}}
{{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.
+
'''[http://www.wtorrent-project.org/ wTorrent]''' is a web interface to rTorrent, a high performance console based BitTorrent client. It uses rTorrent's built-in XMLRPC server to communicate with it.
  
 
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 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 ==
 
== wTorrent with Apache ==
 +
 +
See also [[Apache]].
  
 
=== Installation ===
 
=== Installation ===
  
[[pacman|Install]] {{AUR|wtorrent-svn}} and its the dependencies: {{Pkg|rtorrent}}, {{Pkg|apache}}, {{Pkg|php}}, {{Pkg|php-apache}}, {{Pkg|php-sqlite}}, {{Pkg|php-curl}}, {{AUR|mod_scgi}}.
+
[[Install]] {{AUR|wtorrent-svn}}{{Broken package link|{{aur-mirror|wtorrent-svn}}}} and its the dependencies: {{Pkg|rtorrent}}, {{Pkg|apache}}, {{Pkg|php}}, {{Pkg|php-apache}}, {{Pkg|php-sqlite}}, {{AUR|mod_scgi}}.
 
+
==== 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
+
or:
+
$ wget http://python.ca/scgi/releases/scgi-1.13.tar.gz
+
Then:
+
$ tar xf scgi-1.13.tar.gz
+
$ cd scgi-1.13/apache2
+
$ sudo apxs -i -c mod_scgi.c
+
  
 
=== Configuration ===
 
=== Configuration ===
Line 69: Line 58:
 
Get the latest version of wTorrent and install to your web directory:
 
Get the latest version of wTorrent and install to your web directory:
 
  # cd /srv/http
 
  # cd /srv/http
  # svn co http://svn.wtorrent-project.org/wtorrent/trunk/wtorrent/
+
  # git clone https://github.com/wtorrent/wtorrent.git
 +
# mv wtorrent wtorrent.git
 +
# mv wtorrent.git/wtorrent/ .
 +
# rm -rf wtorrent.git/
 
  # chmod -R 777 wtorrent
 
  # chmod -R 777 wtorrent
  
Line 77: Line 69:
  
 
== wTorrent with lighttpd ==
 
== wTorrent with lighttpd ==
 +
 +
See also [[Lighttpd]].
  
 
=== Installation ===
 
=== Installation ===
  
Install {{Pkg|rtorrent}}, {{Pkg|lighttpd}}, {{Pkg|php}}, {{Pkg|sqlite3}}.
+
Install {{Pkg|rtorrent}}, {{Pkg|lighttpd}}, {{Pkg|php}}, {{Pkg|sqlite}}.
  
 
=== Configuration ===
 
=== Configuration ===
  
http://www.wtorrent-project.org/trac/wiki/wTorrentInstall#UsingLighttpd
+
https://github.com/wtorrent/wtorrent/wiki/InstallGuide#using-lighttpd
  
 
== FAQ ==
 
== FAQ ==
  
{{FAQ|question=Why, when I turn to http://localhost/wtorrent/install.php, it returns not the wTorrent setup page but a plain text page?'''|answer=
+
=== 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 {{ic|/etc/httpd/conf/httpd.conf}}:
 
You should check whether or not PHP is working on your Apache. Add following lines to {{ic|/etc/httpd/conf/httpd.conf}}:
 
In LoadModule Section, add:
 
In LoadModule Section, add:
Line 98: Line 93:
  
 
And make sure that {{ic|SCGIMount /RPC2 127.0.0.1:5000}} is added after the Supplemental configuration section.
 
And make sure that {{ic|SCGIMount /RPC2 127.0.0.1:5000}} is added after the Supplemental configuration section.
}}
 

Latest revision as of 21:22, 13 December 2015

Tango-view-refresh-red.pngThis article or section is out of date.Tango-view-refresh-red.png

Reason: The project homepage and the SF page too time out on 6.4.14. Similar was noted in wtorrent-svnAUR[broken link: archived in aur-mirror] comments two weeks ago. Is the project still existant? (Discuss in Talk:WTorrent#)

wTorrent is a web interface to rTorrent, a high performance console based BitTorrent client. It uses rTorrent's built-in XMLRPC server to communicate with it.

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

See also Apache.

Installation

Install wtorrent-svnAUR[broken link: archived in aur-mirror] and its the dependencies: rtorrent, apache, php, php-apache, php-sqlite, mod_scgiAUR.

Configuration

Adding mod_scgi to httpd.conf

Edit /etc/httpd/conf/httpd.conf.

Locate the LoadModule lines and add:

LoadModule scgi_module modules/mod_scgi.so

Add to the end of the file:

SCGIMount /RPC2 127.0.0.1:5000

Save the file and quit.

Enabling SQLite in php.ini

Edit /etc/php/php.ini.

Locate and uncomment the following:

extension=pdo.so
extension=pdo_sqlite.so
extension=curl.so
extension=xmlrpc.so
extension=sqlite.so
extension=sqlite3.so

PHP

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.

Final steps

Add the following to your ~/.rtorrent.rc:

scgi_port = localhost:5000

Get the latest version of wTorrent and install to your web directory:

# cd /srv/http
# git clone https://github.com/wtorrent/wtorrent.git
# mv wtorrent wtorrent.git
# mv wtorrent.git/wtorrent/ .
# rm -rf wtorrent.git/
# chmod -R 777 wtorrent

Start rTorrent (most common to open a screen and type 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

See also Lighttpd.

Installation

Install rtorrent, lighttpd, php, sqlite.

Configuration

https://github.com/wtorrent/wtorrent/wiki/InstallGuide#using-lighttpd

FAQ

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 SCGIMount /RPC2 127.0.0.1:5000 is added after the Supplemental configuration section.