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:
    Code:
    502 Bad Gateway
    Which means it cant communicate with php.

    I got the apps.vhost setup as follows:
    Code:
    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:
    Code:
    listen = /run/php/php7.0-fpm-apps.sock
    
    php itself it working, no errors.

    The nginx error logs is a followd:
    Code:
     [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: 192.168.0.142, server: _, request: "GET /phpmyadmin/ HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.0-fpm-apps.sock:", host: "192.168.0.100:8081"
    
    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