### Rapport pour ruTorrent généré le 05-08-2016 à 14:24 ###
Utilisateur ruTorrent => ks4bart69
Debian 8.5
Kernel : 3.14.32-xxxx-grs-ipv6-64
PHP 7.0
--> Utilisateur ks4bart69 existant
......................................................................
## Test rTorrent & sgci
......................................................................
rTorrent down
Aucun programme n'écoute sur le port 5001
Bon port SCGI renseigné dans le fichier config.php
Les ports nginx et celui indiqué correspondent
......................................................................
## rTorrent Activity
......................................................................
......................................................................
## Irssi Activity
......................................................................
ks4bart+ 897 0.0 0.0 26144 1280 ? Ss Aug04 0:00 SCREEN -dmS irc_logger irssi
ks4bart+ 907 0.0 0.2 132252 33244 pts/5 Ss+ Aug04 0:11 irssi
......................................................................
## .rtorrent.rc
......................................................................
File : /home/ks4bart69/.rtorrent.rc
scgi_port = 127.0.0.1:5001
encoding_list = UTF-8
port_range = 45000-65000
port_random = no
check_hash = no
directory = /home/ks4bart69/torrents
session = /home/ks4bart69/.session
encryption = allow_incoming, try_outgoing, enable_retry
schedule = watch_directory,1,1,"load_start=/home/ks4bart69/watch/*.torrent"
schedule = untied_directory,5,5,"stop_untied=/home/ks4bart69/watch/*.torrent"
schedule = espace_disque_insuffisant,1,30,close_low_diskspace=500M
use_udp_trackers = yes
dht = off
peer_exchange = no
min_peers = 40
max_peers = 100
min_peers_seed = 10
max_peers_seed = 50
max_uploads = 15
execute = {sh,-c,/usr/bin/php /var/www/rutorrent/php/initplugins.php ks4bart69 &}
......................................................................
## ruTorrent config.php ks4bart69
......................................................................
File : /var/www/rutorrent/conf/users/ks4bart69/config.php
<?php
$pathToExternals = array(
"curl" => '/usr/bin/curl',
"stat" => '/usr/bin/stat',
);
$topDirectory = '/home/ks4bart69';
$scgi_port = 5001;
$scgi_host = '127.0.0.1';
$XMLRPCMountPoint = '/KS4BART69';
......................................................................
## ks4bart69-rtorrent
......................................................................
File : /etc/init.d/ks4bart69-rtorrent
#!/usr/bin/env bash
# Dépendance : screen, killall et rtorrent
### BEGIN INIT INFO
# Provides: ks4bart69-rtorrent
# Required-Start: $syslog $network
# Required-Stop: $syslog $network
# 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
## Début configuration ##
user="ks4bart69"
## Fin configuration ##
rt_start() {
su --command="screen -dmS ${user}-rtorrent rtorrent" "${user}"
}
rt_stop() {
killall --user "${user}" screen
}
case "$1" in
start) echo "Starting rtorrent..."; rt_start
;;
stop) echo "Stopping rtorrent..."; rt_stop
;;
restart) echo "Restart rtorrent..."; rt_stop; sleep 1; rt_start
;;
*) echo "Usage: $0 {start|stop|restart}"; exit 1
;;
esac
exit 0
......................................................................
## cakebox.conf
......................................................................
File : /etc/nginx/sites-enabled/cakebox.conf
server {
listen 81;
server_name _;
# only the proxy
allow 127.0.0.1;
deny all;
root /var/www/cakebox/public/;
access_log /var/log/nginx/cakebox-access.log;
error_log /var/log/nginx/cakebox-error.log;
#site root is redirected to the app boot script
location = / {
try_files @site @site;
}
#all other locations try other files first and go to our front controller if none of them exists
location / {
try_files $uri $uri/ @site;
}
#return 404 for all php files as we do have a front controller
location ~ \.php$ {
return 404;
}
#main configuration
location @site {
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
## use debug instead of production to get more log
fastcgi_param APPLICATION_ENV production;
## fastcgi_param HTTPS on;
}
}
......................................................................
## rutorrent.conf
......................................................................
File : /etc/nginx/sites-enabled/rutorrent.conf
server {
listen 80 default_server;
listen 443 default_server ssl http2;
server_name _;
index index.html index.php;
charset utf-8;
client_max_body_size 10M;
ssl_certificate /etc/nginx/ssl/server.crt;
ssl_certificate_key /etc/nginx/ssl/server.key;
include /etc/nginx/conf.d/ciphers.conf;
access_log /var/log/nginx/rutorrent-access.log combined;
error_log /var/log/nginx/rutorrent-error.log error;
error_page 500 502 503 504 /50x.html;
location = /50x.html { root /usr/share/nginx/html; }
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd";
location = /favicon.ico {
access_log off;
log_not_found off;
}
## debut config accueil serveur ##
location ^~ / {
root /var/www/base;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
satisfy any;
allow all;
}
## fin config accueil serveur ##
## début config proxy ##
location ^~ /proxy {
root /var/www;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
}
## fin config proxy ##
## début config rutorrent ##
location ^~ /rutorrent {
root /var/www;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
location ~ /\.svn {
deny all;
}
location ~ /\.ht {
deny all;
}
}
location ^~ /rutorrent/conf/ {
deny all;
}
location ^~ /rutorrent/share/ {
deny all;
}
## fin config rutorrent ##
## début config munin ##
location ^~ /graph {
root /var/www;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
}
location ^~ /graph/img {
root /var/www;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
error_log /dev/null crit;
}
location ^~ /monitoring {
root /var/www;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
}
## fin config munin ##
## debut config seedbox-manager ##
location ^~ /seedbox-manager {
alias /var/www/seedbox-manager/public;
include /etc/nginx/conf.d/php-manager.conf;
include /etc/nginx/conf.d/cache.conf;
}
## fin config seedbox-manager ##
## debut config cakebox-light ##
location /cakebox/ {
rewrite ^/cakebox(/.*)$ $1 break;
proxy_pass [url]http://127.0.0.1:81[/url];
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_redirect off;
}
location /access/ksbart69/ {
alias /home/ksbart69/torrents/;
add_header Content-Disposition "attachment";
satisfy any;
allow all;
}
location /access/pierrot/ {
alias /home/pierrot/torrents/;
add_header Content-Disposition "attachment";
satisfy any;
allow all;
}
location /access/invites/ {
alias /home/invites/torrents/;
add_header Content-Disposition "attachment";
satisfy any;
allow all;
}
location /access/ricougir/ {
alias /home/ricougir/torrents/;
add_header Content-Disposition "attachment";
satisfy any;
allow all;
}
## etc si d'autre utilisateur ##
## fin config cakebox-light ##
## config utilisateurs ##
location /KS4BART69 {
include scgi_params;
scgi_pass 127.0.0.1:5001; #ou socket : unix:/home/username/.session/username.socket
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_ks4bart69";
}
location /PIERROT {
include scgi_params;
scgi_pass 127.0.0.1:5003; #ou socket : unix:/home/username/.session/username.socket
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_pierrot";
}
location /RICOUGIR {
include scgi_params;
scgi_pass 127.0.0.1:5004; #ou socket : unix:/home/username/.session/username.socket
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_ricougir";
}
location /INVITES {
include scgi_params;
scgi_pass 127.0.0.1:5005; #ou socket : unix:/home/username/.session/username.socket
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_invites";
}
}
......................................................................
## cakebox.config.Php
......................................................................
File : /var/www/cakebox/config/ks4bart69.php
--> Fichier Invalide
......................................................................
## nginx.log
......................................................................
File : /var/log/nginx/rutorrent-error.log
2016/08/04 14:35:47 [error] 903#903: *8 open() "/var/www/base/ru" failed (2: No such file or directory), client: 46.218.64.226, server: _, request: "GET /ru HTTP/2.0", host: "91.121.109.104"
2016/08/04 14:37:25 [error] 903#903: *9 open() "/var/www/base/ru" failed (2: No such file or directory), client: 46.218.64.226, server: _, request: "GET /ru HTTP/1.1", host: "91.121.109.104"
2016/08/04 14:39:21 [error] 903#903: *16 FastCGI sent in stderr: "PHP message: PHP Warning: fopen(/var/www/rutorrent/share/users/pierrot/settings/uisettings.json): failed to open stream: No such file or directory in /var/www/rutorrent/php/getsettings.php on line 7" while reading response header from upstream, client: 46.218.64.226, server: _, request: "POST /rutorrent/php/getsettings.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "91.121.109.104", referrer: "[url]http://91.121.109.104/rutorrent/[/url]"
2016/08/04 14:41:34 [error] 901#901: *375 open() "/var/www/base/cakebox" failed (2: No such file or directory), client: 46.218.64.226, server: _, request: "GET /cakebox HTTP/1.1", host: "91.121.109.104"
2016/08/04 15:34:37 [error] 3192#3192: *1 open() "/var/www/base/cakebox" failed (2: No such file or directory), client: 46.218.64.226, server: _, request: "GET /cakebox HTTP/1.1", host: "91.121.109.104"
2016/08/04 15:39:36 [error] 14245#14245: *1 open() "/var/www/base/cakebox" failed (2: No such file or directory), client: 46.218.64.226, server: _, request: "GET /cakebox HTTP/1.1", host: "91.121.109.104"
2016/08/04 15:45:05 [error] 14245#14245: *6 open() "/var/www/base/cakebox" failed (2: No such file or directory), client: 46.218.64.226, server: _, request: "GET /cakebox HTTP/1.1", host: "91.121.109.104"
2016/08/04 15:51:56 [error] 17385#17385: *6 open() "/var/www/base/cakebox" failed (2: No such file or directory), client: 46.218.64.226, server: _, request: "GET /cakebox HTTP/1.1", host: "91.121.109.104"
2016/08/04 15:52:23 [error] 17385#17385: *7 open() "/var/www/base/cakebox" failed (2: No such file or directory), client: 46.218.64.226, server: _, request: "GET /cakebox HTTP/2.0", host: "91.121.109.104"
2016/08/04 16:06:52 [error] 20684#20684: *1 open() "/var/www/base/cakebox" failed (2: No such file or directory), client: 46.218.64.226, server: _, request: "GET /cakebox HTTP/2.0", host: "91.121.109.104"
2016/08/04 16:06:56 [error] 20684#20684: *2 open() "/var/www/base/cakebox" failed (2: No such file or directory), client: 46.218.64.226, server: _,
2016/08/05 13:45:52 [crit] 5124#5124: *37 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 46.218.64.226, server: _, request: "POST /rutorrent/php/getsettings.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "91.121.109.104", referrer: "[url]http://91.121.109.104/rutorrent/[/url]"
2016/08/05 13:46:06 [crit] 5124#5124: *37 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 46.218.64.226, server: _, request: "POST /rutorrent/php/setsettings.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "91.121.109.104", referrer: "[url]http://91.121.109.104/rutorrent/[/url]"
2016/08/05 13:46:16 [crit] 5124#5124: *46 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 46.218.64.226, server: _, request: "POST /rutorrent/php/setsettings.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "91.121.109.104", referrer: "[url]http://91.121.109.104/rutorrent/[/url]"
2016/08/05 13:46:17 [crit] 5124#5124: *46 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 46.218.64.226, server: _, request: "POST /rutorrent/php/setsettings.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "91.121.109.104", referrer: "[url]http://91.121.109.104/rutorrent/[/url]"
......................................................................
## nginx.conf
......................................................................
File : /etc/nginx/nginx.conf
user www-data;
worker_processes auto;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
use epoll; # gestionnaire d'évènements epoll (kernel 2.6+)
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
access_log /var/log/nginx/access.log combined;
error_log /var/log/nginx/error.log error;
sendfile on;
keepalive_timeout 15;
keepalive_disable msie6;
keepalive_requests 100;
tcp_nopush on;
tcp_nodelay off;
server_tokens off;
gzip on;
gzip_comp_level 5;
gzip_min_length 512;
gzip_buffers 4 8k;
gzip_proxied any;
gzip_vary on;
gzip_disable "msie6";
gzip_types
text/css
text/javascript
text/xml
text/plain
text/x-component
application/javascript
application/x-javascript
application/json
application/xml
application/rss+xml
application/vnd.ms-fontobject
font/truetype
font/opentype
image/svg+xml;
include /etc/nginx/sites-enabled/*.conf;
}
......................................................................
## cache.conf
......................................................................
File : /etc/nginx/conf.d/cache.conf
location ~* \.(jpg|jpeg|gif|css|png|js|woff|ttf|svg|eot)$ {
expires 30d;
access_log off;
}
location ~* \.(eot|ttf|woff|svg)$ {
add_header Acccess-Control-Allow-Origin *;
}
......................................................................
## ciphers.conf
......................................................................
File : /etc/nginx/conf.d/ciphers.conf
ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA';
ssl_prefer_server_ciphers on;
ssl_dhparam /etc/nginx/ssl/dhparams.pem;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
......................................................................
## default.conf
......................................................................
File : /etc/nginx/conf.d/default.conf
server {
listen 80;
server_name localhost;
#charset koi8-r;
#access_log /var/log/nginx/log/host.access.log main;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass [url]http://127.0.0.1[/url];
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
#location ~ \.php$ {
# root html;
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
# include fastcgi_params;
#}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
......................................................................
## php.conf
......................................................................
File : /etc/nginx/conf.d/php.conf
location ~ \.php$ {
fastcgi_index index.php;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}
......................................................................
## php-manager.conf
......................................................................
File : /etc/nginx/conf.d/php-manager.conf
location ~ \.php$ {
root /var/www/seedbox-manager/public;
include /etc/nginx/fastcgi_params;
fastcgi_index index.php;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
}
......................................................................
## fichier pass nginx
......................................................................
Dir : /etc/nginx/passwd
rutorrent_passwd
rutorrent_passwd_invites
rutorrent_passwd_ks4bart69
rutorrent_passwd_pierrot
rutorrent_passwd_ricougir
......................................................................
## fichier ssl nginx
......................................................................
Dir : /etc/nginx/ssl
dhparams.pem
server.crt
server.key
......................................................................
## fin
......................................................................