Bonjour à tous,
J'ai scrupuleusement suivi votre
tuto sur l'installation de rtorrent + rutorrent, mais impossible de le lancé.
J'ai créer un utilisateur "morgan" pour utilisé rtorrent.
Donc quand je fais :
root@home:~# /etc/init.d/morgan.rtord start
Starting rtorrent: rtorrent.
rtorrent se lance à priori sans soucis, mais seulement voila, quand je fais un screen -list, rien !
root@home:~# screen -list
No Sockets found in /var/run/screen/S-root.
Si sa peux vous aidé :
/etc/lighttpd/lighttpd.conf :
server.modules = (
"mod_access",
"mod_alias",
"mod_compress",
"mod_redirect",
# "mod_rewrite",
)
server.document-root = "/var/www"
server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
server.errorlog = "/var/log/lighttpd/error.log"
server.pid-file = "/var/run/lighttpd.pid"
server.username = "www-data"
server.groupname = "www-data"
index-file.names = ( "index.php", "index.html",
"index.htm", "default.htm",
" index.lighttpd.html" )
url.access-deny = ( "~", ".inc" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
include_shell "/usr/share/lighttpd/use-ipv6.pl"
dir-listing.encoding = "utf-8"
server.dir-listing = "enable"
compress.cache-dir = "/var/cache/lighttpd/compress/"
compress.filetype = ( "application/x-javascript", "text/css", "text/html", "text/plain" )
include_shell "/usr/share/lighttpd/create-mime.assign.pl"
include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
fastcgi.server = ( ".php" => ((
"bin-path" => "/usr/bin/php5-cgi",
"socket" => "/tmp/php.socket"
)))
$SERVER["socket"] == ":443" {
ssl.engine = "enable"
ssl.pemfile = "/etc/lighttpd/certs/lighttpd.pem"
}
server.modules += ( "mod_auth" )
auth.backend = "htdigest"
auth.backend.htdigest.userfile = "/etc/lighttpd/.auth"
auth.debug = 2
auth.require = ( "/rutorrent/" =>
(
"method" => "digest",
"realm" => "ruTorrent Seedbox",
"require" => "valid-user"
)
)
server.modules += ( "mod_scgi" )
scgi.server = (
"/<UU>0" =>
( "127.0.0.1" =>
(
"socket" => "/home/morgan/.session/morgan.socket",
"check-local" => "disable",
"disable-time" => 0, # don't disable scgi if connection fails
)
)
)
/var/www/rutorrent/conf/users/morgan/config.php
<?php
$topDirectory = '/home/morgan';
$scgi_port = 0;
$scgi_host = "unix:///home/morgan/.session/morgan.socket";
$XMLRPCMountPoint = "/<UU>0";
?>
/etc/init.d/morgan.rtord
#!/bin/bash
### BEGIN INIT INFO
# Provides: rtorrent
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start daemon at boot time
# Description: Start-Stop rtorrent user session
### END INIT INFO
user="morgan"
# the full path to the filename where you store your rtorrent configuration
config="/home/morgan/.rtorrent.rc"
# set of options to run with
options=""
# default directory for screen, needs to be an absolute path
base="/home/morgan"
# name of screen session
srnname="rtorrent"
# file to log to (makes for easier debugging if something goes wrong)
logfile="/var/log/rtorrentInit.log"
#######################
###END CONFIGURATION###
#######################
.rtorrent.rc
schedule = chmod,0,0,"execute=chmod,777,/home/morgan/.session/morgan.socket"
execute = {sh,-c,rm -f /home/morgan/.session/morgan.socket}
scgi_local = /home/morgan/.session/morgan.socket
execute = {sh,-c,chmod 0666 /home/morgan/.session/morgan.socket}
encoding_list = UTF-8
port_range = 45000-65000
port_random = no
check_hash = no
directory = /home/morgan/torrents
session = /home/morgan/.session
encryption = allow_incoming, try_outgoing, enable_retry
schedule = watch_directory,1,1,"load_start=/home/morgan/watch/*.torrent"
schedule = untied_directory,5,5,"stop_untied=/home/morgan/watch/*.torrent"
use_udp_trackers = yes
dht = off
peer_exchange = no
execute = {sh,-c,/usr/bin/php /var/www/rutorrent/php/initplugins.php morgan &}
PS :
Mon rutorrent indique ceci :
[12.08.2011 12:27:27] WebUI started.
[12.08.2011 12:27:34] Bad response from server: (500 [error,list]) <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[url]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd[/url]"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>500 - Internal Server Error</title> </head> <body> <h1>500 - Internal Server Error</h1> </body> </html>
[12.08.2011 12:27:34] FILE MANAGER ignited
Auriez vous une idée ?
Cordialement