Author Topic: phpfm not work  (Read 1046 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
phpfm not work
« on: May 01, 2024, 05:42:52 PM »
phpfm not work any site getmassge

and file /opt/alt/php-fpm83/usr/var/sockets/
olnly file (cwpsvc.sock - nobody.sock)

[Wed May 01 20:26:34.432274 2024] [proxy:error] [pid 1558366:tid 140555311548160] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /opt/alt/php-fpm83/usr/var/sockets/a7walmas.sock (*:80) failed
[Wed May 01 20:26:34.432309 2024] [proxy_fcgi:error] [pid 1558366:tid 140555311548160] [client 185.191.171.13:47462] AH01079: failed to make connection to backend: httpd-UDS

Offline
*****
Re: phpfm not work
« Reply #1 on: May 02, 2024, 01:54:53 AM »
If you added PHP-FPM 8.3, you have to move forward the user config files from 8.1 or 8.2, editing their contents to reflect the proper version...

Code: [Select]
cp /opt/alt/php-fpm82/usr/etc/php-fpm.d/users/user.conf /opt/alt/php-fpm83/usr/etc/php-fpm.d/users/user.conf
nano /opt/alt/php-fpm83/usr/etc/php-fpm.d/users/user.conf
Change the socket and slowlog references to the new 8.3 version:
Code: [Select]
[user]
listen = /opt/alt/php-fpm83/usr/var/sockets/frogstew.sock
listen.allowed_clients = 127.0.0.1

;listen.owner = "user"
listen.group = "nobody"
listen.mode = 0660
user = "user"
group = "user"

;request_slowlog_timeout = 15s
;slowlog = /opt/alt/php-fpm83/usr/var/log/php-fpm-slowlog-user.log

pm = ondemand
pm.max_children = 4
pm.max_requests = 4000
pm.process_idle_timeout = 15s

;listen.backlog = -1
;request_terminate_timeout = 0s
rlimit_files = 131072
rlimit_core = unlimited
catch_workers_output = yes

env[HOSTNAME] = $HOSTNAME
env[TMP] = /home/user/tmp
env[TMPDIR] = /home/user/tmp
env[TEMP] = /home/user/tmp
env[PATH] = /usr/local/bin:/usr/bin:/bin