You should now be able to access the rutorrent interface on localhost or 127.0.0.1 on port 80 (assuming you did not change the default port for lighttpd). Start rtorrent, and restart lighttpd if you have not done so since changing the configuration. We need to edit /srv/http/rutorrent/conf/config.php, and change the port to the one we used in rtorrent and lighttpd.Ĭhange the owner of the rutorrent to http (the user that lighttpd runs as by default). Rutorrent's configuration files are in /srv/http/rutorrent/conf/. You may need to change rutorrent-3.6 to the desired version from the rutorrent website. These should download and extract rutorrent to /srv/http. We will download rutorrent to lighttpd http directory. Reason: Why download rutorrent if we already have installed the AUR package? (Discuss in Talk:RTorrent/RuTorrent) If these are installed somewhere other than /usr/bin, then you may need to append that to the line also. The binaries are stat, id, php, curl, gzip. Open_basedir = /srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/bin We need to make a small change to the open_basedir line in /etc/php/php.ini, to allow rutorrent to access the binaries it needs to run. If you get error 500 (internal server error), make sure rTorrent is running. If it does not then something may be wrong. This should output a log list of methods that can be accessed through rtorrent's scgi interface. Make sure to use the same port as when configuring rtorrent.Īnd finally the fastcgi settings so lighttpd knows how to deal with php.Īt this point, you should be able to test if rtorrent and lighttpd's scgi are working properly using the xmlrpc command to ask rtorrent for a list of functions. Next we add the configuration for scgi to connect to rtorrent. ".tar.bz2" => "application/x-bzip-compressed-tar", ".tbz" => "application/x-bzip-compressed-tar", ".swf" => "application/x-shockwave-flash", ".pac" => "application/x-ns-proxy-autoconfig", ".torrent" => "application/x-bittorrent", Here is a long list of filetypes, it is probably overkill as most of them are not needed, but easier to cover them all. Otherwise it will not know what to do with them, and you may get a dialog to download the file or rutorrent will just not work properly. We need to tell lighttpd how to treat files like css, images (jpg etc.), js. Fast cgi is needed for rutorrent itself, and scgi for rutorrent to communicate with rtorrent. The following lines tell lighttpd to load the fastcgi and simple-cgi modules. Install Lighttpd and PHP: lighttpd php php-cgi fcgi.Īfter starting lighttpd as per the wiki, you should be able to access the test page at By default the pages are served from /srv/http, this is where we will be putting rutorrent.Įdit lighttpd's configuration file, /etc/lighttpd/nf. You can choose a port other than 5050 if you like. Instead of using a tcp port, it may also be possible to use a socket using the scgi_local option instead, however lighttpd may complain about permissions regardless of permissions / location of socket file. Rtorrent should be compiled with XML-RPC support.Īdd the following line to your rtorrent configuration file, usually ~/.rtorrent.rc. usr/share/webapps/rutorrent/conf/users/anotheruser/config.php usr/share/webapps/rutorrent/conf/users/rtorrentuser/config.php Create a folder with the user's name, then create a config.php, for example: Note: A multi-user setup will need user specific configuration files under /usr/share/webapps/rutorrent/conf/users for each user's socket location. $scgi_host = "unix:///home/rtorrentuser/rpc.socket" Edit the following location to your rutorrent configuration at /etc/webapps/rutorrent/conf/config.php where rtorrentuser is the user running rutorrent:.Enable the rTorrent XMLRPC interface: rTorrent#XMLRPC interface.Ln -s /usr/share/webapps/rutorrent/ /usr/share/nginx/html/rutorrent Create a link from your web root to rutorrent.Note: You should enable authentication through Apache if your site is public.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |