• Seedbox
  • [Discussion] Installation de l'application seedbox-manager

Bonsoir,

j'ai rencontré ce souci rarement (1 ? C'est fort porbable.) et cela date d'il y a fort longtemps... Toutefois, il y a de grande chance @Captain_Alw que cela soit juste une histoire de chemin (doublon inattendu, légèrement ou très mal renseigné, etc). Ainsi, comme je l'ai déjà (re)dis quelques fois, soit il s'agit de la directive location ou root, soit la partie PHP (et ce notamment via la directive fastcgi_param).

Je vais me fier à ce message (par Exrat). Ainsi, avec ce script, cette partie figure dans les fichiers : php.conf et php-manager.conf qu'il faudra recontrôler.

Salut Captain_Alw
Montres nous ton fichier pour avoir un avis sur du concret.
Ex.

Salut merci pour vos réponse ultra-rapide.

Voici mon 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;

}

location ^~ /blackbox/seedbox-manager {
root /var/www;
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;

}

et mon fichier nginx site enabled rutorrent.conf:


location ^~ /blackbox/seedbox-manager {
	alias /var/www;
	include /etc/nginx/conf.d/php-manager.conf;
	include /etc/nginx/conf.d/cache.conf;
}

## fin config seedbox-manager ##

Voila en espèrent que ça vous aidera, merci encore

Captain_Alw au rapport

EDIT : j'arrive à la page de login, je me log et je suis redirigé vers un blank avec un beau file not found (y)

Le dossier blackbox a bien www-data comme proprio ?

Test avec ça pour voir, rutorrent.conf:

       ## début config seedbox-manager ##

        location ^~ /seedbox-manager {
                alias /var/www/blackbox/seedbox-manager/public;
                include /etc/nginx/conf.d/php-manager.conf;
                include /etc/nginx/conf.d/cache.conf;
        }

        ## fin config seedbox-manager ##

et php-manager.conf:

location ~ \.php$ {
    root /var/www/blackbox/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;
}

servcice nginx restart

Après je garanti pas le résultat ! 😉
Ex.

    ex_rat Merci mais toujours le même résultat une fois log blank :/ Proprio comment ça ? j'ai tout simplement fait un mkdir blackbox à l'emplacement /var/www/

    EDIT : C'est bon sur l'url http://mon-ndd/seedbox-manager ça fonctionne ! Pas possible de le cacher dans un sous dossier :o ?

    De rien Captain_Alw. Grosso modo, Exrat fait référence à cette commande :

    chown -Rc www-data:www-data /var/www;

    Ce quelque soit l'application (ruTorrent, OwnCloud, etc) car l'ensemble de ce dossier doit lui appartenir (à www-data). C'est même un réflexe à prendre car cela évite(ra à l'avenir) des soucis. D'autant plus, lorsque l'on crée un dossier, celui-ci n'a pas forcément le bon propriétaire (ni les bons droits).

    Normalement, oui c'est toujours possible mais mes souvenirs sont bons et limités... À l'époque, je l'avais résolue très facilement.

    Tentes en modifiant juste le chemin du location dans ton rutorrent.conf + restart.
    Ça devrait le faire :

    ## début config seedbox-manager ##
    
    location ^~ /blackbox/seedbox-manager {

    Ex.

    2 mois plus tard

    SeedboxManager est down ? J'ai fais l'update et plus rien ne fonctionne ..

    j'ai essayer de mettre à jour avec la version 3 mais lors de

    bower install --allow-root

    J'ai eu le droit à un :

    bower ENOENT        No bower.json present

    du coup j'ai voulu lancer l'install avec :


    cd /var/www
    git clone https://github.com/Magicalex/seedbox-manager.git
    cd seedbox-manager
    composer install
    chown -R www-data: /var/www/seedbox-manager
    cd source
    chmod +x install.sh && ./install.sh

    mais bon maintenant je me retrouve avec une erreur 500 ...

    Oui il faut changer la config nginx.

    C'est une grosse mise à jour, c'est une version majeur la v3.
    Donnez moi vos config nginx rutorrent.conf je vais vous aider

      Mais moi, de même :

      bower ENOENT        No bower.json present

      Voici mon Seedbox.conf sous Nginx. J'ai essayé avec la nouvelle conf que tu propose mais ca ne change rien. Dois-je repartir sur une install propre depuis le dépôt Github ?

      Merci d'avance !

      voila mon rutorrent.conf

      > server {
              listen 443 ssl;
              server_name krissboxx.tk;
              ssl_certificate /etc/letsencrypt/live/krissboxx.tk/fullchain.pem;
              ssl_certificate_key /etc/letsencrypt/live/krissboxx.tk/privkey.pem;
      
      
      	index index.html index.php;
      	charset utf-8;
      	client_max_body_size 10M;
      
      	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;
      	    allow all;
      	}
      
      	## fin config accueil serveur ##
      
      	## 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 ##
      
      	root /var/www;
      
      	location /seedbox-manager {
              	try_files /seedbox-manager/$uri /seedbox-manager/index.php$is_args$args;
      	}
      
      	location ^~ /assets {
      		alias /var/www/seedbox-manager/assets;
      	}
      
      
      ##	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 ##
      
              ## config utilisateurs  ##
      
              location /KRISS {
                  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_kriss";

      Attention, les install' bonobox sont toujours en php5 pour l'instant
      fastcgi_pass unix:/var/run/php5-fpm.sock;
      J'ai commencé pour mettre à jour le script de mon coté, c'est presque fini mais je manque de temps un peu... 😉
      Ex.

      @ex_rat oui je suis sur une install bonobox et toujours en php5 😉

      root@krissboxx:~# php --version
      PHP 5.6.30-0+deb8u1 (cli) (built: Feb 8 2017 08:50:21)
      Copyright (c) 1997-2016 The PHP Group
      Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
      with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies

      @magicalex merci chef ! C'est propre, sobre, flat, parfait !
      La Swaggannceeee

      Enfaite les anciens fichier de configuration ne sont plus bon.

      Pour purge les anciennes config

      rm -R /var/www/seedbox-manager/conf/users/*

      ex_rat, tu supprime php5 complètement ?