DirtyHarry33 wrote:Salut,
Résolu, finalement une erreur dans nginx.conf, comme quoi sortir fumer une clope et prendre à café ça fait pas de mal des fois...
Novice sous Linux, je tente d'installer Wordpress sur mon serveur dédié en suivant le tuto du forum, mais je bloque au redémarrage de nginx.
Après avoir modifié rutorrent.conf (j'ai précédemment exécuter le script de ex_rat pour l'installation automatique de ruTorrent) :
et ajouté :nano /etc/nginx/sites-enabled/rutorrent.conf
j'obtiens l'erreur suivante :
## Début de config wordpress ## location ^~ /wordpress { root /var/www; try_files $uri $uri/ /index.php?q=$uri&$args; include /etc/nginx/conf.d/php.conf; include /etc/nginx/conf.d/cache.conf; satisfy any; allow all; } ## fin de config wordpress ##
Je continue a chercher pourquoi mais je ne suis aps contre un peu d'aide.
Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.
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; } ## 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 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 ## ## 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 ## ## config utilisateurs ## location /DIRTYHARRY33 { 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_dirtyharry33"; } ## D but de config wordpress ## location ^~ /wordpress { root /var/www; try_files $uri $uri/ /index.php?q=$uri&$args; include /etc/nginx/conf.d/php.conf; include /etc/nginx/conf.d/cache.conf; satisfy any; allow all; } ## fin de config wordpress ## }
Perso j'ai installé joomla ( cms comme wordpress) et ça passe sans problème en suivant le tuto.
Tu as installé quoi d'autre ?
Mon fichier rutorrent.conf :
## Debut de config joomla ##
location ^~ / {
root /var/www/site;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
try_files $uri $uri/ /index.php?q=$uri&$args;
satisfy any;
allow all;
}
## fin de config joomla ##