Bonjour à tous, tout d'abord merci à vous pour ces excellents tutos, grâce a vous j'ai pris un dédié pour y installer rutorrent et le reste, maintenant j'aimerais installer cakebox en complément de plex mais j'ai un problème.
Erreur 500 quand j'accède a cakebox, j'ai passé en revu mes fichiers de config, essayé d’appeler cakebox en direct sur le port 81 (sans le allow from 127.0.0.1 et le deny from all) mais rien n'y fait...Toujours cette erreur 500.
Voici mes fichiers de config :
rutorrent.conf
server {
##tuxadd ssl
listen 443 ssl;
server_name mondomaine.ovh;
ssl_certificate /etc/letsencrypt/live/mondomaine.ovh/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/mondomaine.ovh/privkey.pem;
##/tuxaddssl
# 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;
}
## début config accueil serveur ##
location ^~ / {
root /var/www/base;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
satisfy any;
deny 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 ##
## debut config cakebox-light ##
location /cakebox/ {
rewrite ^/cakebox(/.*)$ $1 break;
proxy_pass http://127.0.0.1:81;
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 /cakebox/mrtux/ {
alias /home/mrtux/torrents/;
add_header Content-Disposition "attachment";
satisfy any;
allow all;
}
## etc si d'autre utilisateur ##
## fin config cakebox-light ##
## 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 ##
## début 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 ##
## Ajout de mr.tux ##
# Ca partage le dossier torrents et ca l'indexe
location /torrents {
root /home/mrtux;
autoindex on;
}
# Ca sa active un reverse proxy depuis le serveur plex vers le dossier /plex sur le port 443
location /plex {
proxy_pass http://127.0.0.1:32400/web;
}
## Fin d'ajout mr.tux ##
## config utilisateurs ##
location /MRTUX {
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_mrtux";
}
}
cakebox.conf
server {
listen 81;
server_name _;
root /var/www/cakebox/public;
index index.php;
allow 127.0.0.1; # only the proxy
deny all;
charset utf-8;
include /etc/nginx/conf.d/cache.conf;
access_log /var/log/nginx/cakebox-access.log;
error_log /var/log/nginx/cakebox-error.log;
location = / {
try_files @site @site;
}
location / {
try_files $uri $uri/ @site;
}
location ~ \.php$ {
return 404;
}
location @site {
fastcgi_pass unix:/var/run/php5-fpm.sock;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
fastcgi_param APPLICATION_ENV production;
## uncomment when running via https
## fastcgi_param HTTPS on;
}
}
error.log
2016/01/10 20:27:18 [emerg] 15415#15415: open() "/etc/nginx/cakebox.conf" failed (2: No such file or directory)
2016/01/10 20:27:41 [emerg] 15421#15421: open() "/etc/nginx/rutorrent.conf" failed (2: No such file or directory)
2016/01/10 20:27:50 [emerg] 15424#15424: open() "/etc/nginx/./cakebox.conf" failed (2: No such file or directory)
2016/01/10 20:28:12 [emerg] 15473#15473: "server" directive is not allowed here in /etc/nginx/sites-enabled/cakebox.conf:1
2016/01/10 20:28:38 [emerg] 15479#15479: "server" directive is not allowed here in /etc/nginx/sites-enabled/rutorrent.conf:1
root@ns3303150:/var/log/nginx#
cat cakebox-error.log
2016/01/09 20:05:12 [error] 7629#7629: *738 FastCGI sent in stderr: "PHP message: PHP Warning: require_once(/var/www/cakebox/app/../config/default.php): failed to open stream: No such file or directory in /var/www/cakebox/app/bootstrap.php on line 28
PHP message: PHP Fatal error: require_once(): Failed opening required '/var/www/cakebox/app/../config/default.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/cakebox/app/bootstrap.php on line 28" while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.0", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mondomaine.ovh"
2016/01/09 20:05:20 [error] 7629#7629: *741 FastCGI sent in stderr: "PHP message: PHP Warning: require_once(/var/www/cakebox/app/../config/default.php): failed to open stream: No such file or directory in /var/www/cakebox/app/bootstrap.php on line 28
PHP message: PHP Fatal error: require_once(): Failed opening required '/var/www/cakebox/app/../config/default.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/cakebox/app/bootstrap.php on line 28" while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.0", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mondomaine.ovh"
2016/01/09 20:05:24 [error] 7629#7629: *745 FastCGI sent in stderr: "PHP message: PHP Warning: require_once(/var/www/cakebox/app/../config/default.php): failed to open stream: No such file or directory in /var/www/cakebox/app/bootstrap.php on line 28
PHP message: PHP Fatal error: require_once(): Failed opening required '/var/www/cakebox/app/../config/default.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/cakebox/app/bootstrap.php on line 28" while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.0", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mondomaine.ovh"
2016/01/09 20:06:42 [error] 7627#7627: *834 FastCGI sent in stderr: "PHP message: PHP Warning: require_once(/var/www/cakebox/app/../config/default.php): failed to open stream: No such file or directory in /var/www/cakebox/app/bootstrap.php on line 28
PHP message: PHP Fatal error: require_once(): Failed opening required '/var/www/cakebox/app/../config/default.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/cakebox/app/bootstrap.php on line 28" while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.0", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mondomaine.ovh"
2016/01/09 20:11:21 [error] 7627#7627: *888 FastCGI sent in stderr: "PHP message: PHP Warning: require_once(/var/www/cakebox/app/../config/default.php): failed to open stream: No such file or directory in /var/www/cakebox/app/bootstrap.php on line 28
PHP message: PHP Fatal error: require_once(): Failed opening required '/var/www/cakebox/app/../config/default.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/cakebox/app/bootstrap.php on line 28" while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.0", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mondomaine.ovh"
2016/01/09 20:13:14 [error] 7627#7627: *901 FastCGI sent in stderr: "PHP message: PHP Warning: require_once(/var/www/cakebox/app/../config/default.php): failed to open stream: No such file or directory in /var/www/cakebox/app/bootstrap.php on line 28
PHP message: PHP Fatal error: require_once(): Failed opening required '/var/www/cakebox/app/../config/default.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/cakebox/app/bootstrap.php on line 28" while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET /mrtux HTTP/1.0", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mondomaine.ovh"
2016/01/09 20:13:29 [error] 7627#7627: *906 FastCGI sent in stderr: "PHP message: PHP Warning: require_once(/var/www/cakebox/app/../config/default.php): failed to open stream: No such file or directory in /var/www/cakebox/app/bootstrap.php on line 28
PHP message: PHP Fatal error: require_once(): Failed opening required '/var/www/cakebox/app/../config/default.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/cakebox/app/bootstrap.php on line 28" while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.0", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mondomaine.ovh"
2016/01/09 20:13:35 [error] 7627#7627: *909 FastCGI sent in stderr: "PHP message: PHP Warning: require_once(/var/www/cakebox/app/../config/default.php): failed to open stream: No such file or directory in /var/www/cakebox/app/bootstrap.php on line 28
PHP message: PHP Fatal error: require_once(): Failed opening required '/var/www/cakebox/app/../config/default.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/cakebox/app/bootstrap.php on line 28" while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.0", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mondomaine.ovh"
2016/01/10 20:10:56 [error] 7629#7629: *3666 FastCGI sent in stderr: "PHP message: PHP Warning: require_once(/var/www/cakebox/app/../config/default.php): failed to open stream: No such file or directory in /var/www/cakebox/app/bootstrap.php on line 28
PHP message: PHP Fatal error: require_once(): Failed opening required '/var/www/cakebox/app/../config/default.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/cakebox/app/bootstrap.php on line 28" while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.0", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mondomaine.ovh"
2016/01/10 20:11:48 [error] 7625#7625: *3714 FastCGI sent in stderr: "PHP message: PHP Warning: require_once(/var/www/cakebox/app/../config/default.php): failed to open stream: No such file or directory in /var/www/cakebox/app/bootstrap.php on line 28
PHP message: PHP Fatal error: require_once(): Failed opening required '/var/www/cakebox/app/../config/default.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/cakebox/app/bootstrap.php on line 28" while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "127.0.0.1:81"
2016/01/10 20:12:51 [error] 7625#7625: *3771 access forbidden by rule, client: 5.xxx.159.xx, server: _, request: "GET / HTTP/1.1", host: "mondomaine.ovh:81"
2016/01/10 20:13:41 [error] 7625#7625: *3799 access forbidden by rule, client: 5.xxx.159.xx, server: _, request: "GET / HTTP/1.1", host: "mondomaine.ovh:81"
2016/01/10 20:13:58 [error] 7625#7625: *3802 access forbidden by rule, client: 5.xxx.159.xx, server: _, request: "GET / HTTP/1.1", host: "5.xxx.159.xx:81"
2016/01/10 20:14:07 [error] 7625#7625: *3804 FastCGI sent in stderr: "PHP message: PHP Warning: require_once(/var/www/cakebox/app/../config/default.php): failed to open stream: No such file or directory in /var/www/cakebox/app/bootstrap.php on line 28
PHP message: PHP Fatal error: require_once(): Failed opening required '/var/www/cakebox/app/../config/default.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/cakebox/app/bootstrap.php on line 28" while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "127.0.0.1:81"
2016/01/10 20:17:37 [error] 13416#13416: *33 FastCGI sent in stderr: "PHP message: PHP Warning: require_once(/var/www/cakebox/app/../config/default.php): failed to open stream: No such file or directory in /var/www/cakebox/app/bootstrap.php on line 28
PHP message: PHP Fatal error: require_once(): Failed opening required '/var/www/cakebox/app/../config/default.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/cakebox/app/bootstrap.php on line 28" while reading response header from upstream, client: 85.xxx.244.xx, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "5.xxx.159.xx:81"
2016/01/10 20:17:47 [error] 13416#13416: *33 FastCGI sent in stderr: "PHP message: PHP Warning: require_once(/var/www/cakebox/app/../config/default.php): failed to open stream: No such file or directory in /var/www/cakebox/app/bootstrap.php on line 28
PHP message: PHP Fatal error: require_once(): Failed opening required '/var/www/cakebox/app/../config/default.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/cakebox/app/bootstrap.php on line 28" while reading response header from upstream, client: 85.xxx.244.xx, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "5.xxx.159.xx:81"
2016/01/10 20:22:09 [error] 13416#13416: *60 FastCGI sent in stderr: "PHP message: PHP Warning: require_once(/var/www/cakebox/app/../config/default.php): failed to open stream: No such file or directory in /var/www/cakebox/app/bootstrap.php on line 28
PHP message: PHP Fatal error: require_once(): Failed opening required '/var/www/cakebox/app/../config/default.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/cakebox/app/bootstrap.php on line 28" while reading response header from upstream, client: 85.xxx.244.xx, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "5.xxx.159.xx:81"
2016/01/10 20:25:02 [error] 14627#14627: *3 access forbidden by rule, client: 85.xxx.244.xx, server: _, request: "GET / HTTP/1.1", host: "5.xxx.159.xx:81"
2016/01/10 20:25:02 [error] 14627#14627: *3 access forbidden by rule, client: 85.xxx.244.xx, server: _, request: "GET /favicon.ico HTTP/1.1", host: "5.xxx.159.xx:81", referrer: "http://5.xxx.159.xx:81/"
2016/01/10 20:25:23 [error] 14627#14627: *7 FastCGI sent in stderr: "PHP message: PHP Warning: require_once(/var/www/cakebox/app/../config/default.php): failed to open stream: No such file or directory in /var/www/cakebox/app/bootstrap.php on line 28
PHP message: PHP Fatal error: require_once(): Failed opening required '/var/www/cakebox/app/../config/default.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/cakebox/app/bootstrap.php on line 28" while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.0", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mondomaine.ovh"
2016/01/10 21:24:08 [error] 25489#25489: *16 FastCGI sent in stderr: "PHP message: PHP Warning: require_once(/var/www/cakebox/app/../config/default.php): failed to open stream: No such file or directory in /var/www/cakebox/app/bootstrap.php on line 28
PHP message: PHP Fatal error: require_once(): Failed opening required '/var/www/cakebox/app/../config/default.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/cakebox/app/bootstrap.php on line 28" while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.0", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mondomaine.ovh"
2016/01/10 21:24:14 [error] 25489#25489: *20 FastCGI sent in stderr: "PHP message: PHP Warning: require_once(/var/www/cakebox/app/../config/default.php): failed to open stream: No such file or directory in /var/www/cakebox/app/bootstrap.php on line 28
PHP message: PHP Fatal error: require_once(): Failed opening required '/var/www/cakebox/app/../config/default.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/cakebox/app/bootstrap.php on line 28" while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET /mrtux HTTP/1.0", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mondomaine.ovh"
2016/01/10 21:24:20 [error] 25489#25489: *23 FastCGI sent in stderr: "PHP message: PHP Warning: require_once(/var/www/cakebox/app/../config/default.php): failed to open stream: No such file or directory in /var/www/cakebox/app/bootstrap.php on line 28
PHP message: PHP Fatal error: require_once(): Failed opening required '/var/www/cakebox/app/../config/default.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/cakebox/app/bootstrap.php on line 28" while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET /mrtux HTTP/1.0", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mondomaine.ovh"
2016/01/10 21:24:21 [error] 25489#25489: *27 FastCGI sent in stderr: "PHP message: PHP Warning: require_once(/var/www/cakebox/app/../config/default.php): failed to open stream: No such file or directory in /var/www/cakebox/app/bootstrap.php on line 28
PHP message: PHP Fatal error: require_once(): Failed opening required '/var/www/cakebox/app/../config/default.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/cakebox/app/bootstrap.php on line 28" while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET /mrtuxl HTTP/1.0", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mondomaine.ovh"
Si quelqu'un a une idée ça serait sympa !
EDIT : Cetter erreur à été résolue, c'était du a mon fichier de config qui n'avait pas le bon nom tout simplement, mais maintenant j'en ai une autre cette fois je vois bien l'interface mais lorsque je veux lire un fichier c'est impossible et lorque je veux le téléchargé une erreur 404 apparait et le lien pointe vers
https://mondomaine.ovh/access//monfichier.pdf

J'ai beau passer en revue les fichiers de config je ne vois pas se qui cloche.
HELP !