Mam do was pytanie przez co może mi wyskakiwać 502 Bad Gateway ?
Teraz obecie mam frameworka cakephp tak wszystko fajnie chodzi, jedynie gdy robię pr (print_r) funkcje podobne, nginx pada i mam nginx - 502 Bad Gateway.
Czasami print_r się wyświetli ale jak już po f5 pada i jest 502 Bad Gateway
Dzięki za pomoc
error log:
2015/06/06 14:34:20 [error] 11591#0: *15 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 83.238.236.90, server: domena.pl, request: "POST /users/login HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "domena.pl", referrer: "http://domena.pl/users/login"
ngnix
server { listen 80 default_server; listen [::]:80 default_server ipv6only=on; root /www/domena.pl/htdocs/webroot; index index.php index.html index.htm; server_name domena.pl www.domena.pl; access_log /www/domena.pl/logs/access.log; location / { index index.php index.html index.htm; try_files $uri $uri/ /index.php?$uri&$args; } location ~ \.php$ { try_files $uri =404; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } }