Problem with sockets in php

Hi,

I created my php-fpm templates in hesti for moodle.
All the time something is blocking me from running these moodle.
Removing the sockets does not help the problem comes back.

Templates:

1:
; origin-src: deb/php-fpm/multiphp.tpl

[%domain%]
listen = /run/php/php8.0-fpm-platforma-uat.sock
listen.owner = %user%
listen.group = www-data
listen.mode = 0660

user = %user%
group = %user%

pm = ondemand
pm.max_children = 8
pm.max_requests = 4000
pm.process_idle_timeout = 10s
pm.status_path = /status

2:
; origin-src: deb/php-fpm/multiphp.tpl

[%domain%]
listen = /run/php/php8.0-fpm-platforma2.sock
listen.owner = %user%
listen.group = www-data
listen.mode = 0660

user = %user%
group = %user%

pm = ondemand
pm.max_children = 8
pm.max_requests = 4000
pm.process_idle_timeout = 10s
pm.status_path = /status

Log:
"

[10-Aug-2023 12:13:24] ERROR: Another FPM instance seems to already listen on /run/php/php8.0-fpm-platform2.sock
[10-Aug-2023 12:13:24] ERROR: FPM initialization failed
[10-Aug-2023 12:13:40] ERROR: Another FPM instance seems to already listen on /run/php/php8.0-fpm-platform-uat.sock
[10-Aug-2023 12:13:40] ERROR: FPM initialization faile
"

Translated with DeepL

Don’t hard code the socket use %domain% instead

1 Like

yes you are right.
But due to lack of ideas this is how I wanted to fix it.
In addition I saw that a apache I have such an error:
"
[Thu Aug 10 12:50:52.072023 2023] [proxy:error] [pid 2262412] (111)Connection refused: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php8.0-fpm-platform-uat.sock (*:80) failed
[Thu Aug 10 12:50:52.072102 2023] [proxy_fcgi:error] [pid 2262412] [client 83.31.48.11:0] AH01079: failed to make connection to backend: httpd-UDS
"

Translated with DeepL