502 Плохой шлюз с использованием PHP 5.5

Я обновил PHP 5.3 до PHP 5.5, но вижу "502 Bad Gateway".

Это мой журнал ошибок:

2014/07/29 15:37:22 [error] 8123#0: *3 connect() failed (111: Connection refused) while connecting to upstream, client: 82.58.55.99, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "185.25.204.86"

И это моя конфигурация nginx:

server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;

root /var/www;
index index.php index.html index.htm;

server_name localhost;

location / {
        try_files $uri $uri/ /index.html;
}

location /doc/ {
        alias /usr/share/doc/;
        autoindex on;
        allow 127.0.0.1;
        allow ::1;
        deny all;
}

error_page 404 /404.html;

location ~ \.php$ {
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini

        # With php5-cgi alone:
        fastcgi_pass 127.0.0.1:9000;
        # With php5-fpm:
        fastcgi_index index.php;
        include fastcgi_params;
}

}

Как я могу это решить?


person Michele Schelfi    schedule 29.07.2014    source источник


Ответы (1)


Возможно, вам подойдет: http://wildlyinaccurate.com/solving-502-bad-gateway-with-nginx-php-fpm

person onepix    schedule 29.07.2014