Good morning. Someone had a similar issue not long ago…It looks like you may have missed a few steps:
In /etc/php/7.4/fpm/pool.d - do you have a librenms.conf file? If not, do the following.
cp /etc/php/7.4/fpm/pool.d/www.conf /etc/php/7.4/fpm/pool.d/librenms.conf vi /etc/php/7.4/fpm/pool.d/librenms.conf
CentOS 8 Debian 10
# Change "www" to "librenms" [librenms] # Change user and group to "librenms" user = librenms group = librenms # Change listen to a unique name listen = /run/php-fpm-librenms.sock
next, do the configuration for the web server:
vi /etc/nginx/conf.d/librenms.conf
```server {
listen 80;
server_name librenms.example.com;
root /opt/librenms/html;
index index.php;
charset utf-8;
gzip on;
gzip_types text/css application/javascript text/javascript application/x-javascript image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ [^/]\.php(/|$) {
fastcgi_pass unix:/run/php-fpm-librenms.sock;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include fastcgi.conf;
}
location ~ /\.(?!well-known).* {
deny all;
}
}
rm /etc/nginx/sites-enabled/default
systemctl restart nginx
systemctl restart php7.4-fpm