[Closed] Cannot open WebUI: 502 Bad Gateway / connect /var/lib/php5-fpm/ispconfig.sock failed

Discussion in 'Installation/Configuration' started by c.monty, Jan 31, 2016.

  1. c.monty

    c.monty New Member

    Hello!

    I installed ISPConfig 3 in a multiserver setup with Nginx following howto guide provided in this portal.

    However I cannot open ISPConfig WebUI and get this error:
    502 Bad Gateway

    Checking some logs I found this error message:
    Code:
    [email protected]:~# cat /var/log/nginx/ispconfig.error.log
    2016/01/31 17:08:17 [crit] 4848#4848: *53 connect() to unix:/var/lib/php5-fpm/ispconfig.sock failed (13: Permission denied) while connecting to upstream, client: 10.0.0.1, server: panel.awesomeguyz.de, request: "GET / HTTP/1.0", upstream: "fastcgi://unix:/var/lib/php5-fpm/ispconfig.sock:", host: "10.0.0.10:8080"
    
    php5-fpm is running according to log:
    Code:
    [31-Jan-2016 17:07:48] NOTICE: Finishing ...
    [31-Jan-2016 17:07:48] NOTICE: exiting, bye-bye!
    [31-Jan-2016 17:07:48] NOTICE: fpm is running, pid 12511
    [31-Jan-2016 17:07:48] NOTICE: ready to handle connections
    [31-Jan-2016 17:07:48] NOTICE: systemd monitor interval set to 10000ms
    
    I didn't modify configuration file
    /etc/php5/fpm/pool.d/ispconfig.conf
    and the socket is running as expected:
    Code:
    [email protected]:~# ls -l /var/lib/php5-fpm/
    total 0
    srw-r----- 1 ispapps   ispapps   0 Jan 31 17:07 apps.sock
    srw-r----- 1 ispconfig ispconfig 0 Jan 31 17:07 ispconfig.sock
    
    I can reproduce this issue with other vhost-configuration, e.g. /etc/nginx/sites-available/apps.vhost, defining fastcgi_pass unix:/var/lib/php5-fpm/apps.sock;.
    When I configure fastcgi_pass unix:/var/run/php5-fpm.sock; it works w/o issues.

    After modifying fastcgi_pass unix:/var/run/php5-fpm.sock; in /etc/nginx/sites-available/ispconfig.vhost, I get this error that indicates to me a problem related to user permissions of user accounts ispconfig / ispapps.
    Code:
    2016/02/01 18:43:24 [error] 32520#32520: *6 FastCGI sent in stderr: "PHP message: PHP Warning:  require_once(/usr/local/ispconfig/interface/lib/config.inc.php): failed to open stream: Permission denied in /usr/local/ispconfig/interface/web/index.php on line 31
    PHP message: PHP Fatal error:  require_once(): Failed opening required '../lib/config.inc.php' (include_path='.:/usr/share/php:/usr/share/pear') in /usr/local/ispconfig/interface/web/index.php on line 31" while reading response header from upstream, client: 10.0.0.1, server: _, request: "GET / HTTP/1.0", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "10.0.0.10:8080"
    
    How can I further troubleshoot the issue to identify the root cause?
    Any advise is highly appreciated.

    THX
     
    Last edited: Feb 1, 2016
  2. planet_fox

    planet_fox Member

    You are Using LXC or Proxmox ?
     
  3. c.monty

    c.monty New Member

    I have used Proxmox providing LXC.
    But in the meantime I have dropped this project.
     

Share This Page