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.
Hello everyone,
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.
There is a discrepancy in below section of documentation
as per the document listener setting is “listen = /run/php-fpm-librenms.sock”
it suppose to be “listen = /run/php/php-fpm-librenms.sock” ( extra /php in the path)
Please check this setting and restart php and nginx services
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.
août 09 14:59:52 tc-srv-librenms systemd[1]: Starting The PHP 8.1 FastCGI Process Manager…
août 09 14:59:53 tc-srv-librenms systemd[1]: Started The PHP 8.1 FastCGI Process Manager.
As recommended by the install documentation, you should not use the default pool. Sharing the pool with other applications, might break the other applications.