phpmyadmin && webmail 502 Bad Gateway

Discussion in 'Installation/Configuration' started by demon326, Apr 20, 2017.

  1. demon326

    demon326 New Member

    Hello all,
    i'm testing a server for a client and i'm running into the problem with the webmail, phpmyadmin.. problems.

    Nginx throws the error:
    502 Bad Gateway
    Which means it cant communicate with php.

    I got the apps.vhost setup as follows:
    fastcgi_pass unix:/run/php/php7.0-fpm-apps.sock;
    The php app file located in /etc/php/7.0/fpm/pool.d/apps.conf has the following piece of code in it:
    listen = /run/php/php7.0-fpm-apps.sock
    php itself it working, no errors.

    The nginx error logs is a followd:
     [crit] 17447#17447: *71 connect() to unix:/run/php/php7.0-fpm-apps.sock failed (2: No such file or directory) while connecting to upstream, client:, server: _, request: "GET /phpmyadmin/ HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.0-fpm-apps.sock:", host: ""
    The other vhosts are working like a charm with the same setup, just web1,web2 instead of apps.sock.

    Can somebody help me with this? It must bee something i overlooked.

Share This Page