If you need to post any text longer than a few lines, please use a pastebin service such as https://p.libren.ms using non-expiring pastes.
I have some problem with installation of librenms. I followed all the installation process but the webGUI don’t fonction. It ends up with 502 bad Gateway sent from Nginx. I tried to go to the Ip of the server with /install at the end and without it but it doesn’t works. I am using php8.1 with nginx 1.18.
I checked the errors logs sent from nginx and it sent to me this :
2022/08/03 14:21:40 [crit] 19752#19752: *66 connect() to unix:/run/php/php-fpm-librenms.sock failed (13: Permission denied) while connecting to upstream, client: MyIp, server: ServerIP, request: “GET / HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php-fpm-librenms.sock:”, host: “ServerIP”
I tried several browser but the same error appear again. I am on MacOS and the server is on a Virtual Machine Hosted in a VSphereCenter. If anyone can help me it’s a pleasure to answer question.
Hmm, both points in the documentation say to set it to /run/php-fpm-librenms.sock
Aka: listen = /run/php-fpm-librenms.sock in /etc/php/7.4/fpm/pool.d/librenms.conf
and fastcgi_pass unix:/run/php-fpm-librenms.sock; in /etc/nginx/conf.d/librenms.conf
I do see that this user’s config is looking for /run/php/php-fpm-librenms.sock, so maybe they need to remove the extra /php/ somewhere.