connect() to unix:/var/lib/php5-fpm/ispconfig.sock failed (13: Permission denied)
Hello!
I have installed ISPConfig 3 in LXC container running Debian 8 with Nginx. However I cannot open ISPConfig WebUI and get this error: 502 Bad Gateway
Checking some logs I found this error message: root@panel:~# 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"
I cannot explain the permission error as all services run with required user account to my understanding:
root@panel:~# ps -aux | grep php
root 1334 0.0 3.4 335196 17828 ? Ss 19:02 0:00 php-fpm: master process (/etc/php5/fpm/php-fpm.conf)
ispapps 1351 0.0 1.7 333168 9184 ? S 19:02 0:00 php-fpm: pool apps
ispapps 1352 0.0 1.7 333168 9184 ? S 19:02 0:00 php-fpm: pool apps
ispconf+ 1353 0.0 1.7 333168 9184 ? S 19:02 0:00 php-fpm: pool ispconfig
ispconf+ 1356 0.0 1.7 333168 9184 ? S 19:02 0:00 php-fpm: pool ispconfig
www-data 1357 0.0 1.7 331188 9184 ? S 19:02 0:00 php-fpm: pool www
www-data 1358 0.0 1.7 331188 9184 ? S 19:02 0:00 php-fpm: pool www
root@panel:~# ps -aux | grep nginx root 1199 0.0 0.3 91664 1652 ? Ss 19:02 0:00 nginx: master process /usr/sbin/nginx www-data 1203 0.0 0.8 92020 4276 ? S 19:02 0:00 nginx: worker process www-data 1205 0.0 0.8 92020 4276 ? S 19:02 0:00 nginx: worker process www-data 1207 0.0 0.8 92020 4276 ? S 19:02 0:00 nginx: worker process www-data 1208 0.0 0.8 92020 4276 ? S 19:02 0:00 nginx: worker process
root@panel:~# id ispconfig uid=1001(ispconfig) gid=1002(ispconfig) groups=1002(ispconfig)
Is this related to the environment running ISPConfig in a container?
THX