Bonjour, j'apporte ma pièce dans le sujet, je suis bloqué après un redémarrage du serveur avec ça :
[08.11.2017 14:47:19] Lien incorrect avec rTorrent. Vérifier qu'il est bien en cours d'exécution. Vérifier la configuration de $scgi_port et de $scgi_host dans config.php et scgi_port dans le fichier de configuration de rTorrent.
Erreur très courante du coup, je cherche un peut et voilà tout ce que j'ai fait
server {
listen 80 default_server;
server_name _;
charset utf-8;
index index.html index.php;
client_max_body_size 10M;
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;
auth_basic "Private";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd";
root /var/www;
location = /50x.html {
root /usr/share/nginx/html;
}
location = /favicon.ico {
access_log off;
log_not_found off;
}
location /rutorrent {
try_files $uri $uri/ /index.html;
}
location ~ ^/rutorrent/(conf|share)/(.+)$ {
deny all;
}
location ~ \.php$ {
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
}
location ~* \.(jpg|jpeg|gif|css|png|js|map|woff|woff2|ttf|svg|eot)$ {
expires 30d;
access_log off;
}
location = /BIC {
include scgi_params;
scgi_pass 127.0.0.1:5001;
auth_basic "Private";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_bic";
}
}
Je regarde aussi mon .rtorrent
scgi_port = 127.0.0.1:5001
encoding_list = UTF-8
port_range = 45000-65000
port_random = no
check_hash = no
directory = /home/bic/torrents
session = /home/bic/.session
encryption = allow_incoming, try_outgoing, enable_retry
schedule = watch_directory,1,1,"load.start=/home/bic/watch/*.torrent"
schedule = untied_directory,5,5,"stop_untied=/home/bic/watch/*.torrent"
trackers.use_udp.set = yes
dht.mode.set = off
protocol.pex.set = 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 bic &}
schedule = espace_disque_insuffisant,1,30,close_low_diskspace=500M
-Mon dossier .session est vide
- Mon erreur dans les logs
2017/11/08 14:26:36 [error] 519#519: *1 FastCGI sent in stderr: "PHP message: PHP Notice: Use of undefined constant buildtorrent - assumed 'buildtorrent' in /var/www/rutorrent/plugins/create/conf.php on line 4" while reading response header from upstream, client: 192.168.1.13, server: _, request: "POST /rutorrent/plugins/create/action.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.0-fpm.sock:", host: "192.168.1.18", referrer: "http://192.168.1.18/rutorrent/"
2017/11/08 14:28:40 [error] 519#519: *1 FastCGI sent in stderr: "PHP message: PHP Notice: Use of undefined constant buildtorrent - assumed 'buildtorrent' in /var/www/rutorrent/plugins/create/conf.php on line 4
PHP message: PHP Notice: Use of undefined constant buildtorrent - assumed 'buildtorrent' in /var/www/rutorrent/plugins/create/conf.php on line 4" while reading response header from upstream, client: 192.168.1.13, server: _, request: "GET /rutorrent/php/getplugins.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.0-fpm.sock:", host: "192.168.1.18", referrer: "http://192.168.1.18/rutorrent/"
2017/11/08 14:28:40 [error] 519#519: *1 FastCGI sent in stderr: "PHP message: PHP Notice: Use of undefined constant buildtorrent - assumed 'buildtorrent' in /var/www/rutorrent/plugins/create/conf.php on line 4" while reading response header from upstream, client: 192.168.1.13, server: _, request: "POST /rutorrent/plugins/create/action.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.0-fpm.sock:", host: "192.168.1.18", referrer: "http://192.168.1.18/rutorrent/"
-Mon fichier de l'erreur:
#/var/www/rutorrent/plugins/create/conf.php
<?php
// configuration parameters
$useExternal = 'buildtorrent'; // Valid choices:
// false - use internal realization (may be too slow for large files)
// "transmissioncli" - use program transmissioncli (see http://www.transmissionbt.com/)
// "transmissioncreate" - use program transmissioncreate (see http://www.transmissionbt.com/)
// "createtorrent" - use program createtorrent (see http://www.createtorrent.com)
// "mktorrent" - use program mktorrent (see http://mktorrent.sourceforge.net)
// "buildtorrent" - use program buildtorrent (see http://claudiusmaximus.goto10.org/cm/torrent.html)
$pathToCreatetorrent = '/usr/bin/buildtorrent'; // Something like /bin/createtorrent, or /bin/transmissioncli. If empty, program will be found in PATH.
$recentTrackersMaxCount = 15;
Voilà, j'aurais une erreur php, mais je ne vois pas d'ou elle proviens tout correspond bien. Merci pour vos aide