Nginx 502 bad gateway

Discussion in 'Nginx' started by Ruriko, Aug 10, 2011.

  1. #1
    I'm trying to install phpmyadmin with nginx but when I'm about to install you have to choose a web server which lists apache2 & lighttpd which I'm not using neither cause I'm using nginx. So I selected apache2. When I try to view phpmyadmin I would get 502 Bad Gateway


    nginx vhost config
    server {
            listen    80;
            server_name     205.185.126.17;
     
            location / {
                    root /usr/share/phpmyadmin;
                    index index.php;
            }
     
            location ~ .php$ {
                    fastcgi_pass   127.0.0.1:49232; #this must point to the socket spawn_fcgi is running on.
                    fastcgi_index  index.php;
                    fastcgi_param  SCRIPT_FILENAME    /usr/share/phpmyadmin/$fastcgi_script_name;  # same path as above
                    include /etc/nginx/fastcgi_params;
            }
        }
    Code (markup):

     
    Ruriko, Aug 10, 2011 IP
  2. linc

    linc Member

    Messages:
    355
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    28
    #2
    have you checked the error log for further trouble shooting?
     
    linc, Aug 11, 2011 IP