[proxy:error] [pid 7260:tid 140096791570176] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php-fpm-librenms.sock (*) failed
[Fri Feb 04 15:00:06.595881 2022] [proxy_fcgi:error] [pid 7260:tid 140096791570176] [client 80.251.1.196:27715] AH01079: failed to make connection to backend: httpd-UDS
According the documentation:
Configure PHP-FPM
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
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
and :
vi /etc/apache2/sites-available/librenms.conf
Add the following config, edit ServerName as required:
The file did not exist by default. I kind of figured out this might be the problem so I have created it manually, as in:
touch /run/php-fpm-librenms.sock
Now i’m getting a connection refused error:
[Mon Feb 07 08:41:35.529716 2022] [proxy:error] [pid 114599:tid 140601740596992] (111)Connection refused: AH02454: FCGI: attempt to connect to Unix domain socket /run/php-fpm-librenms.sock (*) failed
[Mon Feb 07 08:41:35.529774 2022] [proxy_fcgi:error] [pid 114599:tid 140601740596992] [client 80.xx.xx.xx:20241] AH01079: failed to make connection to backend: httpd-UDS
I have changed the owner to www-data and set permission 777 to that file (hoping it might help)
-rwxrwxrwx 1 www-data www-data 0 Feb 4 15:28 php-fpm-librenms.sock
But it didn’t really help either.
On Azure’s side, I explicitly allowed connection from my IP address to this machine in the firewall to all ports/all protocols, just in case it’s a firewall rejection. But still the same issue.
what do you think ?
Frankly, this is my first time fiddling with Azure VMs. I usually install LNMS VM’s in our in-house VMware cluster where I didn’t have such issue before.
One more thing, is it normal that there is no ./install script/folder ? becuz I can’t find it this new machine. The locate command returns nothing. Unlike my older LNMS machines