Bonjour,
Je voudrais installer nginx pour utiliser wordpress sur mon raspberry pi 4 8go mais il ne veut pas se lancer.
Voici l’erreur : root@raspberrypi:/var/log/nginx# service nginx status ● nginx.service - A high performance web server and a reverse proxy server Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Sun 2020-11-01 15:10:24 CET; 20min ago Docs: man:nginx(8) Process: 14214 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)
nov. 01 15:10:24 raspberrypi systemd[1]: Starting A high performance web server and a reverse proxy server… nov. 01 15:10:24 raspberrypi nginx[14214]: nginx: [emerg] open() « /etc/nginx/sites-enabled/192.168.68.103 » failed (2: No such file or directory) in /etc/nginx/nginx.conf:62 nov. 01 15:10:24 raspberrypi nginx[14214]: nginx: configuration file /etc/nginx/nginx.conf test failed nov. 01 15:10:24 raspberrypi systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE nov. 01 15:10:24 raspberrypi systemd[1]: nginx.service: Failed with result ‹ exit-code ›. nov. 01 15:10:24 raspberrypi systemd[1]: Failed to start A high performance web server and a reverse proxy server.
ds un terminal : sudo nginx -t
devrait te donner plus de détails
peut être aussi le fichier error.log de ton site (<tonsite>.error.log) ds /var/log/nginx/
Quand je fait « sudo nginx -t » j’obtiens ça : nginx: [emerg] open() « /etc/nginx/sites-enabled/192.168.68.103 » failed (2: No such file or directory) in /etc/nginx/nginx.conf:62 nginx: configuration file /etc/nginx/nginx.conf test failed
Le dernier log contient 2020/09/16 11:58:56 [emerg] 16436#16436: open() « /etc/nginx/sites-enabled/192.168.68.103 » failed (2: No such file or directory) in /etc/nginx/nginx.conf:62
2020/09/16 11:59:15 [emerg] 16668#16668: open() « /etc/nginx/sites-enabled/192.168.68.103 » failed (2: No such file or directory) in /etc/nginx/nginx.conf:62
2020/09/16 19:17:07 [emerg] 518#518: open() « /etc/nginx/sites-enabled/192.168.68.103 » failed (2: No such file or directory) in /etc/nginx/nginx.conf:62
2020/09/16 20:36:38 [emerg] 524#524: open() « /etc/nginx/sites-enabled/192.168.68.103 » failed (2: No such file or directory) in /etc/nginx/nginx.conf:62
2020/09/16 21:17:06 [emerg] 551#551: open() « /etc/nginx/sites-enabled/192.168.68.103 » failed (2: No such file or directory) in /etc/nginx/nginx.conf:62
apparemment tu as un truc en ligne 62 que nginx ne « digère » pas … peut être que tu as créé ton fichier <tonsite>.conf dans /etc/nginx/sites-enabled/ à la place de le créer ds /etc/nginx/sites-available/ ?