Skocz do zawartości
Bravo

Nginx 502 Bad Gateway PHP-FPM

Polecane posty

Witam,

Mam pewien problem ponieważ gdy wchodzę na swoją stronę wyskakuje mi błąd 502 Bad Gateway.

 

NGINX LOGI:

 

2016/06/18 15:59:45 [crit] 10298#0: *2 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: TU IP, server: TU IP, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP"
2016/06/18 15:59:47 [crit] 10298#0: *2 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: TU IP, server: TU IP, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP"
2016/06/18 15:59:47 [crit] 10298#0: *2 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: TU IP, server: TU IP, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP"
2016/06/18 15:59:48 [crit] 10298#0: *2 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: TU IP, server: TU IP, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP"
2016/06/18 15:59:49 [crit] 10298#0: *2 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: TU IP, server: TU IP, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP"
2016/06/18 15:59:49 [crit] 10298#0: *2 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: TU IP, server: TU IP, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP"
2016/06/18 15:59:50 [crit] 10298#0: *2 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: TU IP, server: TU IP, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP"
2016/06/18 15:59:50 [crit] 10298#0: *2 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: TU IP, server: TU IP, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP"
2016/06/18 15:59:51 [crit] 10298#0: *2 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: TU IP, server: TU IP, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP"
2016/06/18 16:08:19 [crit] 10337#0: *1 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: TU IP, server: TU IP, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP"
2016/06/18 16:08:20 [crit] 10337#0: *1 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: TU IP, server: TU IP, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP"
2016/06/18 16:09:52 [crit] 10401#0: *1 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: TU IP, server: TU IP, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP"
2016/06/18 16:09:53 [crit] 10401#0: *1 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: TU IP, server: TU IP, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP"
2016/06/18 16:09:54 [crit] 10401#0: *1 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: TU IP, server: TU IP, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP"
2016/06/18 16:09:57 [crit] 10401#0: *1 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: TU IP, server: TU IP, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP"
2016/06/18 16:09:59 [crit] 10401#0: *1 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: TU IP, server: TU IP, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP"
2016/06/18 16:09:59 [crit] 10401#0: *1 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: TU IP, server: TU IP, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP"
2016/06/18 16:09:59 [crit] 10401#0: *8 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: TU IP, server: TU IP, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP"
2016/06/18 16:10:00 [crit] 10401#0: *8 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: TU IP, server: TU IP, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP"
2016/06/18 16:12:33 [crit] 10449#0: *1 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: TU IP, server: TU IP, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP"
2016/06/18 16:12:34 [crit] 10449#0: *1 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: TU IP, server: TU IP, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP"
2016/06/18 16:12:34 [crit] 10449#0: *1 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: TU IP, server: TU IP, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP"
2016/06/18 16:12:35 [crit] 10449#0: *1 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: TU IP, server: TU IP, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP"
2016/06/18 16:12:36 [crit] 10449#0: *1 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: TU IP, server: TU IP, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP"
2016/06/18 16:12:36 [crit] 10449#0: *1 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: TU IP, server: TU IP, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP"
2016/06/18 16:12:37 [crit] 10449#0: *1 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: TU IP, server: TU IP, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP"
2016/06/18 16:12:37 [crit] 10449#0: *1 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: TU IP, server: TU IP, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP"
2016/06/18 16:12:38 [crit] 10449#0: *1 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: TU IP, server: TU IP, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP"
2016/06/18 16:14:07 [crit] 10449#0: *13 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: TU IP, server: TU IP, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP"
2016/06/18 16:14:10 [crit] 10449#0: *13 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: TU IP, server: TU IP, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP"
2016/06/18 16:14:11 [crit] 10449#0: *13 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: TU IP, server: TU IP, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP"
2016/06/18 16:14:29 [crit] 10449#0: *17 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: TU IP, server: TU IP, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP"
2016/06/18 16:14:56 [crit] 10449#0: *13 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: TU IP, server: TU IP, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP"
2016/06/18 16:14:59 [crit] 10449#0: *21 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 91.197.15.34, server: TU IP, request: "HEAD / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP"
2016/06/18 16:14:59 [crit] 10449#0: *21 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 91.197.15.34, server: TU IP, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP"
2016/06/18 16:14:59 [crit] 10449#0: *21 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 91.197.15.34, server: TU IP, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP"
2016/06/18 16:15:00 [crit] 10449#0: *25 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 91.197.15.34, server: TU IP, request: "HEAD / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP"
2016/06/18 16:15:00 [crit] 10449#0: *25 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 91.197.15.34, server: TU IP, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP"
2016/06/18 16:15:00 [crit] 10449#0: *25 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 91.197.15.34, server: TU IP, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP"
2016/06/18 16:15:05 [crit] 10449#0: *13 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: TU IP, server: TU IP, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP", referrer: "http://www.gg.pl/"
2016/06/18 16:15:30 [crit] 10449#0: *30 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 66.249.64.181, server: TU IP, request: "GET /robots.txt HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP"
2016/06/18 16:18:37 [crit] 10449#0: *35 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: TU IP, server: TU IP, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP", referrer: "http://www.gg.pl/"
2016/06/18 16:18:37 [crit] 10449#0: *35 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: TU IP, server: TU IP, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP", referrer: "http://www.gg.pl/"
2016/06/18 16:18:49 [crit] 10449#0: *35 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: TU IP, server: TU IP, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP", referrer: "http://www.gg.pl/"
2016/06/18 16:18:49 [crit] 10449#0: *35 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: TU IP, server: TU IP, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP", referrer: "http://www.gg.pl/"
2016/06/18 16:18:50 [crit] 10449#0: *35 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: TU IP, server: TU IP, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP", referrer: "http://www.gg.pl/"
2016/06/18 16:18:50 [crit] 10449#0: *35 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: TU IP, server: TU IP, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP", referrer: "http://www.gg.pl/"
2016/06/18 16:18:50 [crit] 10449#0: *43 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: TU IP, server: TU IP, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP", referrer: "http://www.gg.pl/"
2016/06/18 16:18:50 [crit] 10449#0: *45 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: TU IP, server: TU IP, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP", referrer: "http://www.gg.pl/"
2016/06/18 16:25:26 [crit] 10449#0: *53 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: TU IP, server: TU IP, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP"
2016/06/18 16:25:27 [crit] 10449#0: *53 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: TU IP, server: TU IP, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP"
2016/06/18 16:25:31 [crit] 10449#0: *53 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: TU IP, server: TU IP, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP"
2016/06/18 16:28:01 [crit] 10449#0: *61 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 94.176.151.156, server: TU IP, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP"
2016/06/18 16:32:10 [crit] 10640#0: *1 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: TU IP, server: TU IP, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP"
2016/06/18 16:33:54 [crit] 10691#0: *2 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: TU IP, server: TU IP, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "TU IP"

Proszę o pomoc :)

 

Udostępnij ten post


Link to postu
Udostępnij na innych stronach
Gość l3szcz

Nie ma socketu PHP-FPM.
service php-fpm start
lub service php5-fpm start

Udostępnij ten post


Link to postu
Udostępnij na innych stronach

Nie ma socketu PHP-FPM.

service php-fpm start

lub service php5-fpm start

 

@l3szcz

Dalej nie działa

 

2016/06/18 18:42:23 [crit] 11193#0: *2 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 6.129.178, server: 9.240.113, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "94.240.113"
2016/06/18 18:42:23 [crit] 11193#0: *2 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 83.9.178, server: 94.140.113, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "94.1.113"
2016/06/18 18:42:26 [crit] 11193#0: *2 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 83.6.12, server: 94.113, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "940.113"
2016/06/18 18:42:26 [crit] 11193#0: *2 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 89.178, server: 94.4.113, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "9.113"
2016/06/18 18:42:27 [crit] 11193#0: *2 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 83.178, server: 94.17.13, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "94.13"

@edit

 

Do czegoś doszedłem po zmianie linijki fastcgi_pass unix:/var/run/php5-fpm.sock; na fastcgi_pass 127.0.0.1:7777; ( w /etc/nginx/sites-available) zamiast 502 Bad Gateway wyświetla się File not found.

 

NOWY ERROR:

 

2016/06/18 19:04:34 [error] 11528#0: *1 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 83.178, server: 94.24, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "94.40.113"
2016/06/18 19:04:35 [error] 11528#0: *1 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 178, server: 94.17113, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "94.17.113"
2016/06/18 19:04:35 [error] 11528#0: *1 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 8178, server: 94.14113, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "94.1.113"
2016/06/18 19:06:04 [error] 11528#0: *8 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 8329.178, server: 94.1.240.113, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "94.17113"
Edytowano przez Bravo (zobacz historię edycji)

Udostępnij ten post


Link to postu
Udostępnij na innych stronach

Bądź aktywny! Zaloguj się lub utwórz konto

Tylko zarejestrowani użytkownicy mogą komentować zawartość tej strony

Utwórz konto

Zarejestruj nowe konto, to proste!

Zarejestruj nowe konto

Zaloguj się

Posiadasz własne konto? Użyj go!

Zaloguj się


×