View Single Post
  #7   (View Single Post)  
Old 30th September 2008
mfaridi's Avatar
mfaridi mfaridi is offline
Spam Deminer
 
Join Date: May 2008
Location: Afghanistan
Posts: 320
Default

Quote:
Originally Posted by Jmdbh View Post
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:
  1. Install xmlrpc-c-devel first
  2. Install rtorrent-devel with xmlrpc support
  3. Install your favourite www server (I use lighttpd)
  4. Install PHP
  5. Install rtgui (this will install required PHP modules as well)
  6. Deinstall rtgui and download and install the latest version from its homepage manually.
  7. 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?
Thanks
but I use apache and want connect to my system from another place for example when I am in university I can use it and when I am in office I can use it again
Reply With Quote