here is my config from wtorrent
PHP Code:
<?php
// Base URL of application (where index.php is)
define( 'URL', 'http://canbruixa.homelinux.net/wtorrent/' );
define( 'BASE', 'http://canbruixa.homelinux.net/wtorrent/' );
// SQLite database file (set folder permision 0777 or chmod to httpd server) (wTorrent will create database when running install.php)
define( 'DB_FILE', 'db/database.db');
// Host or IP to connect to rTorrent
define( 'RT_HOST', 'localhost');
define( 'RT_PORT', 8008);
define( 'RT_DIR', 'RPC2/');
define( 'RT_AUTH', false);
define( 'RT_USER', 'admin');
define( 'RT_PASSWD', '****');
// where to use multicall or not
// if wTorrent makes your rtorrent crash, set this to true
define( 'NO_MULTICALL', true);
// Directory in which to save uploaded .torrent files (set folder permision 0777 or chmod to httpd server)
define( 'DIR_TORRENTS', 'torrents/');
// Full path to application directory (where index.php is)
define( 'DIR_EXEC', '/opt/share/www/lighttpd/wtorrent/');
// Permision to set for uploaded .torrent files (don't touch unless you know)
define( 'PERM_TORRENTS', 0777);
// Default location to save downloaded files (can be set for every uploaded .torrent on the ui)
define( 'DIR_DOWNLOAD', '/mnt/rtorrent/work/');
// Don't touch any of the data below unless you know what you are doing
define( 'DIR_LANG', 'home/lang/' );
define( 'DIR_TPL', 'home/tpl/' );
define( 'DIR_TPL_COMPILE', 'tpl_c/' );
define( 'DIR_TPL_HTML', 'home/html/' );
define( 'DIR_BACKUP', 'backup/' );
define( 'DIR_UPLOAD', 'torrents/');
define( 'TITLE', 'wTorrent' );
define( 'META_TITLE', 'rTorrent web interface' );
define( 'META_KEYWORDS', 'rtorrent xmlrpc interface php web html' );
define( 'META_DESCRIPTION', 'rtorrent web inrface using xmlrpc' );
define( 'DIR_CSS_DETALLS', 'home/css/detalls.css' );
define( 'DIR_CSS_ESTIL', 'home/css/estil.css' );
define( 'DIR_JS', 'home/js/javasc.js' );
define( 'DIR_FAVICO', 'favicon.ico' );
//define( 'USER_RTORRENT', 'rtorrent');
define( 'DIR_IMG', 'home/img/' );
define( 'SRC_INDEX', 'index.php' );
define( 'SCRAMBLE', false);
define( 'APP', 'wTorrent' );
// Librerias generales
require_once( 'lib/inc/includes.inc.php' );
// Autodeclaracion de clases
autoload( 'lib/cls/', 'cls/', 'home/cls/' );
// Definicion de rutas para UNIX
ini_set( 'include_path', DIR_EXEC );
?>
and my rtorrent config
PHP Code:
#scgi_local = /opt/var/run/rpc.socket
scgi_port = 127.0.0.1:5000
send_buffer_size = 65536
min_peers = 20
max_peers = 50
max_uploads = 5
download_rate = 100
upload_rate = 100
directory = /mnt/rtorrent/work/
schedule = watch_directory,5,5,load_start=/mnt/rtorrent/dl/*.torrent
session = /mnt/rtorrent/session
port_range = 51777-51780
check_hash = yes
use_udp_trackers = yes
schedule = ratio,30,60,stop_on_ratio=200
and lightphp
PHP Code:
"mod_access",
"mod_fastcgi",
"mod_scgi",
# "mod_cml",
# "mod_trigger_b4_dl",
"mod_auth",
# "mod_status",
# "mod_setenv",
# "mod_fastcgi",
# "mod_proxy",
# "mod_simple_vhost",
# "mod_evhost",
# "mod_userdir",
# "mod_cgi",
# "mod_compress",
# "mod_ssi",
# "mod_usertrack",
# "mod_expire",
# "mod_secdownload",
# "mod_rrdtool",
"mod_accesslog" )
## a static document-root, for virtual-hosting take look at the
## server.virtual-* options
server.document-root = "/opt/share/www/lighttpd/"
## where to send error-messages to
server.errorlog = "/opt/var/log/lighttpd/error.log"
# files to check for if .../ is requested
index-file.names = ( "index.php", "index.html",
"index.htm", "default.htm" )
## deny access the file-extensions
#
# ~ is for backupfiles from vi, emacs, joe, ...
# .inc is often used for code includes which should in general not be part
# of the document-root
url.access-deny = ("~", ".inc", ".db", ".tpl.php", ".cls.php",".sqlite")
$HTTP["url"] =~ "\.pdf$" {
server.range-requests = "disable"
}
###################################################################################
fastcgi.server = ( ".php" =>
((
"host" => "127.0.0.1",
"port" => 1026,
))
)
##### wtorrent
scgi.server = (
"/RPC2" => # RT_DIR
( "127.0.0.1" =>
(
"host" => "127.0.0.1", # Ip where rtorrent is listening
"port" => 5000, # Port specified in .rtorrent.rc
"check-local" => "disable"
)
)
)
hope it helps