How to install rtorrent, rutorrent, nginx, php-fpm and more on Arch Linux

simur612

Member
May 25, 2018
879
0
16
It's just that the nginx and the php you used are already out of date. Managing that stuff by hand isn't worth it. That's what pacman is there for anyway.

So to do this without having to compile something yourself and configure so much.

pacman -S apache php-apache screen

then from the AUR (I use yaourt) install rtorrent:

yaourt -S rutorrent rutorrent-plugins

then you can grab the generic .rtorrent.rc

cd
wget -O .rtorrent.rc http://libtorrent.rakshasa.no/browser/trunk/rtorrent/doc/rtorrent.rc?format=raw

and edit the ~/.rtorrent.rc and add

scgi_port=127.0.0.1:5000

then edit /etc/httpd/conf/httpd.conf and add

LoadModule php5_module modules/libphp5.so
Include conf/extra/php5_module.conf

and edit /etc/php/php.ini and uncomment

extension=xmlrpc.so
extension=json.so

you can also insert your timezone, while you're editing php.ini

then edit /srv/http/rutorrent/conf/plugins.ini and add this to the end

[rpc]
enabled=no

after that it should be working.

So you can make a user and copy your .rtorrent.rc into that users directory. Then use the guide here: https://wiki.archlinux.org/index.php/Rtorrent#rtorrent_Daemon_with_screen to make rtorrent a daemon with screen.

Basically it's: su user -c 'screen -d -m -S rtorrent rtorrent'

You will also need to make sure the http user owns the rutorrent directory

chown -R http:http /srv/http/rutorrent

Then once that's all set up you can start apache with:

/etc/rc.d/httpd start

then browse to the ip of your server http://x.x.x.x/rutorrent
and it should be a working install of rutorrent.
 

randac56

Member
May 25, 2018
915
0
16
awesome guide! Was looking to switch from apache to nginx, and use sockets instead of tcp. Used this guide as a base to accomplish that on Ubuntu 10.04, using ppa's to grab the latest nginx & php versions. Everything is working perfectly!
 

lisas4567

Member
May 25, 2018
773
0
16
As I came from Xubuntu, one of the first things I *tried* to install on Arch Linux was rTorrent + rutorrent. My best was when I could run rutorrent but plugins couldn't work, so after trying every fix I could find, tried to start over.
Tried literally every tutorial from the Arch Wiki/forum and everything I could find searching. This tutorial was my "last resort" before creating a thread or other client.

I can't get past configuring/building PHP part; had to edit /usr/local/src/php-5.3.5/configure so it would match a freetype2 update and got probably every possible php error when trying make lol
I did run make clean and ./configure after every patch/fix.
Currently I'm getting this: make: *** [sapi/fpm/php-fpm] Error 1, which the only fix I could find is downloading something from a svn that is 404'ed.

Is there anything else I can try before switching to another bittorrent client? Do I need php-fpm or can I skip it?
Thanks