Quote:
Originally Posted by deemon
Use the linux howto-s and apply common sense.
|
It took me several days to figure out how to do this on FreeBSD.
Especially xmlrpc-c is a pain, as no current version exists.
net/xmlrpc-c-devel has been added recently, but is still outdated. Current versions are only available from subversion repository and don't build on FreeBSD out-of-the box.
But the basic steps are:
- Install xmlrpc-c-devel first
- Install rtorrent-devel with xmlrpc support
- Install your favourite www server (I use lighttpd)
- Install PHP
- Install rtgui (this will install required PHP modules as well)
- Deinstall rtgui and download and install the latest version from its homepage manually.
- Install screen and the startup script I posted ealier.
Configurations are:
For your .rtorrent.rc:
Code:
scgi_port = 127.0.0.1:5000
Note: It is easier to use a network connection, if you run rtorrent as a different user than the www server, but it is less secure than a unix socket.
Note: To have rtgui show the hard disk space correctly you have to use absolute path in you .rtorrent.rc and the www server must not run chroot or jailed.
For lighttpd.conf:
Code:
#### fastcgi module
## read fastcgi.txt for more info
## for PHP don't forget to set cgi.fix_pathinfo = 1 in the php.ini
fastcgi.server = ( ".php" =>
((
"socket" => "/tmp/php-fastcgi.socket",
"bin-path" => "/usr/local/bin/php-cgi"
))
)
#### SCGI module
## used for rtorrent
scgi.server = (
"/RPC2" =>
( "127.0.0.1" =>
(
"host" => "127.0.0.1",
"port" => 5000,
"check-local" => "disable",
"disable-time" => 0
)
)
)
And finally for rtgui's config.php:
Code:
// Connect string for your local RPC/rTorrent connection:
$rpc_connect="http://localhost/RPC2";
Maybe I should post this in How-To section?