Topic: php-fpm of various versions together

Hi there. Although I am successfully using php 5.6 (and even php 5.3) on an AlmaLinux 8.5 Plesk machine, the fpm fails to start. No big deal, I am using the CGI versions of these two  older PHP's. However, if there is a trick to it, I would love to implement the FPM handler as well.
Many thanks for any tips..

Re: php-fpm of various versions together

Sorry can't help on Plesk.

Following the Wizard instructions, using my repository, you can install PHP 5.6 to 8.1 simultaneously and everything should work out-of-the-box, but no idea about Plesk

> the fpm fails to start

Obviously not enough information.

Also no idea of what packages are installed

=> rpm -qa \*php\*

Desktop: Fedora 35 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 34 + rpmfusion + remi (SCL only)
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: php-fpm of various versions together

Yes of course, let me try..

# service php56-php-fpm status
Redirecting to /bin/systemctl status php56-php-fpm.service
● php56-php-fpm.service - The PHP FastCGI Process Manager
   Loaded: loaded (/usr/lib/systemd/system/php56-php-fpm.service; enabled; vendor preset: disabled)
  Drop-In: /usr/lib/systemd/system/php56-php-fpm.service.d
           └─limit_nofile.conf, respawn.conf
   Active: activating (auto-restart) (Result: exit-code) since Thu 2022-01-27 15:50:51 CET; 2s ago
  Process: 36218 ExecStart=/opt/remi/php56/root/usr/sbin/php-fpm --nodaemonize (code=exited, status=78)
Main PID: 36218 (code=exited, status=78)

# /opt/remi/php56/root/usr/sbin/php-fpm --nodaemonize
[27-Jan-2022 15:51:38] ERROR: An another FPM instance seems to already listen on /var/opt/remi/php56/run/php-fpm/www.sock
[27-Jan-2022 15:51:38] ERROR: FPM initialization failed

[root@storm dict]# rpm -qa \*php\*
plesk-php74-7.4.27-1centos.8.211224.1937.x86_64
plesk-php80-redis-5.3.6-1centos.8.220121.1317.x86_64
php-common-7.2.24-1.module_el8.3.0+2010+7c76a223.x86_64
plesk-php81-enchant-8.1.2-1centos.8.220121.1317.x86_64
plesk-php74-pdo-7.4.27-1centos.8.211224.1937.x86_64
plesk-php81-opcache-8.1.2-1centos.8.220121.1317.x86_64
plesk-php81-xdebug-3.1.2-1centos.8.220121.1317.x86_64
php56-php-pecl-jsonc-1.3.10-3.el8.remi.x86_64
plesk-php72-pear-1.10.12-1centos.8.211108.1944.noarch
plesk-php74-pear-1.10.13-1centos.8.211224.1937.noarch
php-xml-7.2.24-1.module_el8.3.0+2010+7c76a223.x86_64
plesk-php73-xml-7.3.33-1centos.8.211118.1928.x86_64
plesk-php73-enchant-7.3.33-1centos.8.211118.1928.x86_64
plesk-php74-snmp-7.4.27-1centos.8.211224.1937.x86_64
plesk-php72-dba-7.2.34-1centos.8.211108.1944.x86_64
plesk-php72-process-7.2.34-1centos.8.211108.1944.x86_64
plesk-php73-fpm-7.3.33-1centos.8.211118.1928.x86_64
plesk-php73-redis-5.3.4-1centos.8.211118.1928.x86_64
plesk-php74-intl-7.4.27-1centos.8.211224.1937.x86_64
plesk-php74-xdebug-3.1.2-1centos.8.211224.1937.x86_64
plesk-php71-ldap-7.1.33-1centos.8.211108.1944.x86_64
plesk-php71-xmlrpc-7.1.33-1centos.8.211108.1944.x86_64
plesk-php80-pdo-8.0.15-1centos.8.220121.1317.x86_64
plesk-php81-mysql-8.1.2-1centos.8.220121.1317.x86_64
plesk-php80-enchant-8.0.15-1centos.8.220121.1317.x86_64
plesk-php80-opcache-8.0.15-1centos.8.220121.1317.x86_64
plesk-php80-xdebug-3.1.2-1centos.8.220121.1317.x86_64
plesk-php81-intl-8.1.2-1centos.8.220121.1317.x86_64
plesk-php81-soap-8.1.2-1centos.8.220121.1317.x86_64
plesk-php72-pdo-7.2.34-1centos.8.211108.1944.x86_64
plesk-php74-fpm-7.4.27-1centos.8.211224.1937.x86_64
php-cli-7.2.24-1.module_el8.3.0+2010+7c76a223.x86_64
plesk-php73-gd-7.3.33-1centos.8.211118.1928.x86_64
plesk-php71-mcrypt-7.1.33-1centos.8.211108.1944.x86_64
plesk-php71-mysql-7.1.33-1centos.8.211108.1944.x86_64
plesk-php72-odbc-7.2.34-1centos.8.211108.1944.x86_64
plesk-php74-odbc-7.4.27-1centos.8.211224.1937.x86_64
plesk-php71-snmp-7.1.33-1centos.8.211108.1944.x86_64
plesk-php73-pspell-7.3.33-1centos.8.211118.1928.x86_64
php-ioncube-loader-10.4.5-2.centos.8+p18.0.41.0+t220113.1606.x86_64
plesk-php72-ldap-7.2.34-1centos.8.211108.1944.x86_64
plesk-php72-xmlrpc-7.2.34-1centos.8.211108.1944.x86_64
plesk-php73-mbstring-7.3.33-1centos.8.211118.1928.x86_64
plesk-php74-bcmath-7.4.27-1centos.8.211224.1937.x86_64
plesk-php74-redis-5.3.5-1centos.8.211220.1041.x86_64
plesk-php71-imap-7.1.33-1centos.8.211108.1944.x86_64
php-gd-7.2.24-1.module_el8.3.0+2010+7c76a223.x86_64
plesk-php71-soap-7.1.33-1centos.8.211108.1944.x86_64
plesk-php80-xml-8.0.15-1centos.8.220121.1317.x86_64
plesk-php80-mysql-8.0.15-1centos.8.220121.1317.x86_64
plesk-php80-imagick-3.7.0-1centos.8.220121.1317.x86_64
plesk-php72-7.2.34-1centos.8.211108.1944.x86_64
plesk-php74-xml-7.4.27-1centos.8.211224.1937.x86_64
plesk-php74-mysql-7.4.27-1centos.8.211224.1937.x86_64
php-mysqlnd-7.2.24-1.module_el8.3.0+2010+7c76a223.x86_64
php-json-7.2.24-1.module_el8.3.0+2010+7c76a223.x86_64
plesk-php72-xml-7.2.34-1centos.8.211108.1944.x86_64
plesk-php71-xml-7.1.33-1centos.8.211108.1944.x86_64
php-fpm-7.2.24-1.module_el8.3.0+2010+7c76a223.x86_64
plesk-php80-intl-8.0.15-1centos.8.220121.1317.x86_64
plesk-php80-process-8.0.15-1centos.8.220121.1317.x86_64
plesk-php80-soap-8.0.15-1centos.8.220121.1317.x86_64
plesk-php81-bcmath-8.1.2-1centos.8.220121.1317.x86_64
plesk-php81-gd-8.1.2-1centos.8.220121.1317.x86_64
plesk-php81-ldap-8.1.2-1centos.8.220121.1317.x86_64
plesk-php81-pspell-8.1.2-1centos.8.220121.1317.x86_64
plesk-php81-sodium-8.1.2-1centos.8.220121.1317.x86_64
php56-runtime-3.0-1.el8.remi.x86_64
php56-php-pecl-zip-1.20.0-1.el8.remi.x86_64
plesk-php72-imagick-3.4.4-1centos.8.211108.1944.x86_64
plesk-php71-pear-1.10.1-1centos.8.211108.1944.noarch
plesk-php71-odbc-7.1.33-1centos.8.211108.1944.x86_64
plesk-php73-odbc-7.3.33-1centos.8.211118.1928.x86_64
plesk-php72-pgsql-7.2.34-1centos.8.211108.1944.x86_64
plesk-php71-enchant-7.1.33-1centos.8.211108.1944.x86_64
plesk-php72-snmp-7.2.34-1centos.8.211108.1944.x86_64
plesk-php74-pspell-7.4.27-1centos.8.211224.1937.x86_64
plesk-php72-tidy-7.2.34-1centos.8.211108.1944.x86_64
plesk-php72-imap-7.2.34-1centos.8.211108.1944.x86_64
plesk-php72-mbstring-7.2.34-1centos.8.211108.1944.x86_64
plesk-php72-soap-7.2.34-1centos.8.211108.1944.x86_64
plesk-php73-bcmath-7.3.33-1centos.8.211118.1928.x86_64
plesk-php73-intl-7.3.33-1centos.8.211118.1928.x86_64
plesk-php73-opcache-7.3.33-1centos.8.211118.1928.x86_64
plesk-php73-sodium-7.3.33-1centos.8.211118.1928.x86_64
plesk-php74-dba-7.4.27-1centos.8.211224.1937.x86_64
plesk-php74-ldap-7.4.27-1centos.8.211224.1937.x86_64
plesk-php74-soap-7.4.27-1centos.8.211224.1937.x86_64
plesk-php71-bcmath-7.1.33-1centos.8.211108.1944.x86_64
plesk-php71-intl-7.1.33-1centos.8.211108.1944.x86_64
plesk-php71-opcache-7.1.33-1centos.8.211108.1944.x86_64
plesk-php71-sodium-2.0.13-1centos.8.211108.1944.x86_64
plesk-php81-8.1.2-1centos.8.220121.1317.x86_64
plesk-php80-cli-8.0.15-1centos.8.220121.1317.x86_64
plesk-php81-pear-1.10.13-1centos.8.220121.1317.noarch
plesk-php81-pgsql-8.1.2-1centos.8.220121.1317.x86_64
plesk-php80-bcmath-8.0.15-1centos.8.220121.1317.x86_64
plesk-php80-gd-8.0.15-1centos.8.220121.1317.x86_64
php-7.2.24-1.module_el8.3.0+2010+7c76a223.x86_64
plesk-php73-7.3.33-1centos.8.211118.1928.x86_64
plesk-php74-cli-7.4.27-1centos.8.211224.1937.x86_64
plesk-php74-imap-7.4.27-1centos.8.211224.1937.x86_64
plesk-php72-cli-7.2.34-1centos.8.211108.1944.x86_64
plesk-php71-cli-7.1.33-1centos.8.211108.1944.x86_64
plesk-php80-ldap-8.0.15-1centos.8.220121.1317.x86_64
plesk-php80-pspell-8.0.15-1centos.8.220121.1317.x86_64
plesk-php80-sodium-8.0.15-1centos.8.220121.1317.x86_64
plesk-php81-dba-8.1.2-1centos.8.220121.1317.x86_64
plesk-php81-imagick-3.7.0-1centos.8.220121.1317.x86_64
plesk-php81-mbstring-8.1.2-1centos.8.220121.1317.x86_64
plesk-php81-redis-5.3.6-1centos.8.220121.1317.x86_64
plesk-php81-tidy-8.1.2-1centos.8.220121.1317.x86_64
php56-libzip-1.8.0-1.el8.remi.x86_64
plesk-php73-imagick-3.6.0-1centos.8.211118.1928.x86_64
psa-php-configurator-1.8.0-2.centos.8+p18.0.41.0+t220113.1606.x86_64
plesk-php71-gd-7.1.33-1centos.8.211108.1944.x86_64
plesk-php73-pear-1.10.13-1centos.8.211118.1928.noarch
plesk-php71-pgsql-7.1.33-1centos.8.211108.1944.x86_64
plesk-php73-pgsql-7.3.33-1centos.8.211118.1928.x86_64
plesk-php72-enchant-7.2.34-1centos.8.211108.1944.x86_64
plesk-php73-snmp-7.3.33-1centos.8.211118.1928.x86_64
plesk-php71-pspell-7.1.33-1centos.8.211108.1944.x86_64
plesk-php73-tidy-7.3.33-1centos.8.211118.1928.x86_64
plesk-php72-bcmath-7.2.34-1centos.8.211108.1944.x86_64
plesk-php72-intl-7.2.34-1centos.8.211108.1944.x86_64
plesk-php72-opcache-7.2.34-1centos.8.211108.1944.x86_64
plesk-php72-sodium-7.2.34-1centos.8.211108.1944.x86_64
plesk-php73-dba-7.3.33-1centos.8.211118.1928.x86_64
plesk-php73-ioncube-loader-10.4.5-1centos.8.211118.1928.x86_64
plesk-php73-process-7.3.33-1centos.8.211118.1928.x86_64
plesk-php73-xdebug-3.1.1-1centos.8.211118.1928.x86_64
plesk-php74-opcache-7.4.27-1centos.8.211224.1937.x86_64
plesk-php74-sodium-7.4.27-1centos.8.211220.1041.x86_64
plesk-php71-dba-7.1.33-1centos.8.211108.1944.x86_64
plesk-php71-ioncube-loader-10.2.1-1centos.8.211108.1944.x86_64
plesk-php71-process-7.1.33-1centos.8.211108.1944.x86_64
plesk-php71-xdebug-2.5.0-1centos.8.211108.1944.x86_64
plesk-php81-pdo-8.1.2-1centos.8.220121.1317.x86_64
plesk-php81-xml-8.1.2-1centos.8.220121.1317.x86_64
plesk-php81-odbc-8.1.2-1centos.8.220121.1317.x86_64
plesk-php80-pgsql-8.0.15-1centos.8.220121.1317.x86_64
plesk-php80-fpm-8.0.15-1centos.8.220121.1317.x86_64
plesk-php80-mbstring-8.0.15-1centos.8.220121.1317.x86_64
plesk-php80-tidy-8.0.15-1centos.8.220121.1317.x86_64
plesk-php81-imap-8.1.2-1centos.8.220121.1317.x86_64
plesk-php81-snmp-8.1.2-1centos.8.220121.1317.x86_64
plesk-php73-pdo-7.3.33-1centos.8.211118.1928.x86_64
php56-php-fpm-5.6.40-32.el8.remi.x86_64
php-pdo-7.2.24-1.module_el8.3.0+2010+7c76a223.x86_64
plesk-php74-imagick-3.6.0-1centos.8.211220.1041.x86_64
plesk-php72-gd-7.2.34-1centos.8.211108.1944.x86_64
plesk-php72-mysql-7.2.34-1centos.8.211108.1944.x86_64
plesk-php74-pgsql-7.4.27-1centos.8.211224.1937.x86_64
plesk-php72-pspell-7.2.34-1centos.8.211108.1944.x86_64
plesk-php74-tidy-7.4.27-1centos.8.211224.1937.x86_64
plesk-php72-ioncube-loader-10.4.5-1centos.8.211108.1944.x86_64
plesk-php72-xdebug-3.0.0-1centos.8.211108.1944.x86_64
plesk-php73-ldap-7.3.33-1centos.8.211118.1928.x86_64
plesk-php73-xmlrpc-7.3.33-1centos.8.211118.1928.x86_64
plesk-php74-process-7.4.27-1centos.8.211224.1937.x86_64
php-dba-7.2.24-1.module_el8.3.0+2010+7c76a223.x86_64
plesk-php71-fpm-7.1.33-1centos.8.211108.1944.x86_64
plesk-php71-redis-3.0.0-1centos.8.211108.1944.x86_64
plesk-php81-cli-8.1.2-1centos.8.220121.1317.x86_64
plesk-php80-odbc-8.0.15-1centos.8.220121.1317.x86_64
plesk-php80-imap-8.0.15-1centos.8.220121.1317.x86_64
plesk-php71-7.1.33-1centos.8.211108.1944.x86_64
plesk-php80-snmp-8.0.15-1centos.8.220121.1317.x86_64
plesk-php81-fpm-8.1.2-1centos.8.220121.1317.x86_64
plesk-php81-process-8.1.2-1centos.8.220121.1317.x86_64
plesk-php71-pdo-7.1.33-1centos.8.211108.1944.x86_64
php56-php-common-5.6.40-32.el8.remi.x86_64
plesk-php74-mbstring-7.4.27-1centos.8.211224.1937.x86_64
plesk-php71-imagick-3.4.3-1centos.8.211108.1944.x86_64
plesk-php73-mysql-7.3.33-1centos.8.211118.1928.x86_64
php-mbstring-7.2.24-1.module_el8.3.0+2010+7c76a223.x86_64
plesk-php73-cli-7.3.33-1centos.8.211118.1928.x86_64
plesk-php74-enchant-7.4.27-1centos.8.211224.1937.x86_64
plesk-php71-tidy-7.1.33-1centos.8.211108.1944.x86_64
psa-phpmyadmin-5.1.1-2.centos.8+p18.0.41.0+t220113.1606.noarch
plesk-php72-fpm-7.2.34-1centos.8.211108.1944.x86_64
plesk-php72-redis-5.3.2-1centos.8.211108.1944.x86_64
plesk-php73-imap-7.3.33-1centos.8.211118.1928.x86_64
plesk-php73-soap-7.3.33-1centos.8.211118.1928.x86_64
plesk-php74-ioncube-loader-10.4.5-1centos.8.211220.1041.x86_64
plesk-php74-xmlrpc-7.4.27-1centos.8.211224.1937.x86_64
plesk-php71-mbstring-7.1.33-1centos.8.211108.1944.x86_64
plesk-php74-gd-7.4.27-1centos.8.211224.1937.x86_64
plesk-php80-8.0.15-1centos.8.220121.1317.x86_64
plesk-php80-pear-1.10.13-1centos.8.220121.1317.noarch
plesk-php80-dba-8.0.15-1centos.8.220121.1317.x86_64

Re: php-fpm of various versions together

> [27-Jan-2022 15:51:38] ERROR: An another FPM instance seems to already listen on /var/opt/remi/php56/run/php-fpm/www.sock

Message seems clear.

Desktop: Fedora 35 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 34 + rpmfusion + remi (SCL only)
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: php-fpm of various versions together

but stop and start do not help -- same message..
# service php56-php-fpm stop
Redirecting to /bin/systemctl stop php56-php-fpm.service
[root@storm dict]# service php56-php-fpm start
Redirecting to /bin/systemctl start php56-php-fpm.service
Job for php56-php-fpm.service failed because the control process exited with error code.
See "systemctl status php56-php-fpm.service" and "journalctl -xe" for details.

Re: php-fpm of various versions together

May help:

# lsof /var/opt/remi/php56/run/php-fpm/www.sock
COMMAND  PID USER   FD   TYPE             DEVICE SIZE/OFF  NODE NAME
php-fpm 1500 root    6u  unix 0x000000005b98de2f      0t0 21006 /var/opt/remi/php56/run/php-fpm/www.sock type=STREAM (LISTEN)


# ps -ef | grep fpm
root        1500       1  0 06:52 ?        00:00:00 php-fpm: master process (/etc/opt/remi/php56/php-fpm.conf)
root        1501       1  0 06:52 ?        00:00:00 php-fpm: master process (/etc/opt/remi/php70/php-fpm.conf)
root        1502       1  0 06:52 ?        00:00:01 php-fpm: master process (/etc/opt/remi/php71/php-fpm.conf)
root        1503       1  0 06:52 ?        00:00:00 php-fpm: master process (/etc/opt/remi/php72/php-fpm.conf)
root        1504       1  0 06:52 ?        00:00:00 php-fpm: master process (/etc/opt/remi/php73/php-fpm.conf)
root        1505       1  0 06:52 ?        00:00:00 php-fpm: master process (/etc/opt/remi/php74/php-fpm.conf)
root        1507       1  0 06:52 ?        00:00:00 php-fpm: master process (/etc/opt/remi/php80/php-fpm.conf)
root        1508       1  0 06:52 ?        00:00:00 php-fpm: master process (/etc/opt/remi/php81/php-fpm.conf)
apache      1710    1508  0 06:52 ?        00:00:00 php-fpm: pool www
apache      1711    1508  0 06:52 ?        00:00:00 php-fpm: pool www
apache      1712    1508  0 06:52 ?        00:00:00 php-fpm: pool www
apache      1713    1508  0 06:52 ?        00:00:00 php-fpm: pool www
apache      1714    1508  0 06:52 ?        00:00:00 php-fpm: pool www
root      289518       1  0 15:54 ?        00:00:00 php-fpm: master process (/etc/php-fpm.conf)
apache    289519  289518  0 15:54 ?        00:00:00 php-fpm: pool bis
apache    289520  289518  0 15:54 ?        00:00:00 php-fpm: pool www
apache    289521  289518  0 15:54 ?        00:00:00 php-fpm: pool www
apache    289522  289518  0 15:54 ?        00:00:00 php-fpm: pool www
apache    289523  289518  0 15:54 ?        00:00:00 php-fpm: pool www
Desktop: Fedora 35 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 34 + rpmfusion + remi (SCL only)
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: php-fpm of various versions together

And of course, reading the service log
=> /var/opt/remi/php56/log/php-fpm/error.log

Desktop: Fedora 35 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 34 + rpmfusion + remi (SCL only)
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: php-fpm of various versions together

here is what I found. Oddly enough, the kentdatapark.com was set to use PHP 7.2 FPM. So it was not even 5.6. Anyway, I changed kentdatapark to 7.4 FPM, and it disappeared from the lsof list..

[root@storm dict]#  lsof /var/opt/remi/php56/run/php-fpm/www.sock
COMMAND   PID   USER   FD   TYPE             DEVICE SIZE/OFF     NODE NAME
php-fpm  1224   root   38u  unix 0xffff9dd817267080      0t0    39846 /var/www/vhosts/system/kentdatapark.com/php-fpm.sock type=STREAM
php-fpm 32956   root   43u  unix 0xffff9de141e6d580      0t0 58221241 /var/opt/remi/php56/run/php-fpm/www.sock type=STREAM
php-fpm 32957 apache    0u  unix 0xffff9de141e6d580      0t0 58221241 /var/opt/remi/php56/run/php-fpm/www.sock type=STREAM
php-fpm 32958 apache    0u  unix 0xffff9de141e6d580      0t0 58221241 /var/opt/remi/php56/run/php-fpm/www.sock type=STREAM
php-fpm 32959 apache    0u  unix 0xffff9de141e6d580      0t0 58221241 /var/opt/remi/php56/run/php-fpm/www.sock type=STREAM
php-fpm 32960 apache    0u  unix 0xffff9de141e6d580      0t0 58221241 /var/opt/remi/php56/run/php-fpm/www.sock type=STREAM
php-fpm 32961 apache    0u  unix 0xffff9de141e6d580      0t0 58221241 /var/opt/remi/php56/run/php-fpm/www.sock type=STREAM

Re: php-fpm of various versions together

here is the ps:

#  ps -ef | grep fpm
root      1220     1  0 Jan24 ?        00:00:04 sw-engine-fpm: master process (/etc/sw-engine/sw-engine-fpm.conf)
root      1221     1  0 Jan24 ?        00:00:14 php-fpm: master process (/opt/plesk/php/7.3/etc/php-fpm.conf)
root      1224     1  0 Jan24 ?        00:00:42 php-fpm: master process (/opt/plesk/php/7.2/etc/php-fpm.conf)
root      1234     1  0 Jan24 ?        00:00:06 php-fpm: master process (/opt/plesk/php/7.1/etc/php-fpm.conf)
root     17962     1  0 15:05 ?        00:00:00 php-fpm: master process (/etc/php-fpm.conf)
apache   23980  1234  0 Jan26 ?        00:00:04 php-fpm: pool plesk-php71-fpm.plesk-service.localdomain
psaadm   29417  1220  0 15:24 ?        00:00:29 sw-engine-fpm: pool plesk
root     32956     1  0 14:42 ?        00:00:00 php-fpm: master process (/etc/opt/remi/php56/php-fpm.conf)
apache   32957 32956  0 14:42 ?        00:00:00 php-fpm: pool www
apache   32958 32956  0 14:42 ?        00:00:00 php-fpm: pool www
apache   32959 32956  0 14:42 ?        00:00:00 php-fpm: pool www
apache   32960 32956  0 14:42 ?        00:00:00 php-fpm: pool www
apache   32961 32956  0 14:42 ?        00:00:00 php-fpm: pool www
web1     48773 49038  3 16:13 ?        00:00:00 php-fpm: pool kalfaoglu.net
root     48929 57517  0 16:13 pts/0    00:00:00 grep --color=auto fpm
root     49038     1  0 14:52 ?        00:00:02 php-fpm: master process (/opt/plesk/php/7.4/etc/php-fpm.conf)
root     60489     1  0 Jan26 ?        00:00:13 php-fpm: master process (/opt/plesk/php/8.0/etc/php-fpm.conf)

Re: php-fpm of various versions together

The tail end of the log just has lots of these
[27-Jan-2022 16:14:59] ERROR: FPM initialization failed
[27-Jan-2022 16:15:04] ERROR: An another FPM instance seems to already listen on /var/opt/remi/php56/run/php-fpm/www.sock
[27-Jan-2022 16:15:04] ERROR: FPM initialization failed
[27-Jan-2022 16:15:10] ERROR: An another FPM instance seems to already listen on /var/opt/remi/php56/run/php-fpm/www.sock
[27-Jan-2022 16:15:10] ERROR: FPM initialization failed
[27-Jan-2022 16:15:15] ERROR: An another FPM instance seems to already listen on /var/opt/remi/php56/run/php-fpm/www.sock
[27-Jan-2022 16:15:15] ERROR: FPM initialization failed
[27-Jan-2022 16:15:20] ERROR: An another FPM instance seems to already listen on /var/opt/remi/php56/run/php-fpm/www.sock
[27-Jan-2022 16:15:20] ERROR: FPM initialization failed
[27-Jan-2022 16:15:25] ERROR: An another FPM instance seems to already listen on /var/opt/remi/php56/run/php-fpm/www.sock
[27-Jan-2022 16:15:25] ERROR: FPM initialization failed

Re: php-fpm of various versions together

root     32956     1  0 14:42 ?        00:00:00 php-fpm: master process (/etc/opt/remi/php56/php-fpm.conf)
apache   32957 32956  0 14:42 ?        00:00:00 php-fpm: pool www
apache   32958 32956  0 14:42 ?        00:00:00 php-fpm: pool www
apache   32959 32956  0 14:42 ?        00:00:00 php-fpm: pool www
apache   32960 32956  0 14:42 ?        00:00:00 php-fpm: pool www
apache   32961 32956  0 14:42 ?        00:00:00 php-fpm: pool www

So, everything ok ?

Desktop: Fedora 35 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 34 + rpmfusion + remi (SCL only)
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: php-fpm of various versions together

Well, I have these defined for 5.6:
# /usr/local/psa/bin/php_handler --list|grep "5.6"
  706cf5c8d8d33e079ec6eae74a3d4f4c7b87569c          PHP 5.6 FPM         5.6.40       5.6      fpm  /opt/remi/php56/root/usr/sbin/php-fpm  /opt/remi/php56/root/usr/bin/php     /etc/opt/remi/php56/php.ini     true  enabled
  8b218cc052b65fb3be47fb4aeae41ec603092ab4              PHP 5.6         5.6.40       5.6      cgi   /opt/remi/php56/root/usr/bin/php-cgi  /opt/remi/php56/root/usr/bin/php     /etc/opt/remi/php56/php.ini     true  enabled

but when I set some site to use the fpm version, it shows these in the logs and the site gives a 503 Service unavailable error.


[Thu Jan 27 16:46:50.265102 2022] [proxy:error] [pid 9178:tid 139916326221568] (111)Connection refused: AH02454: FCGI: attempt to connect to Unix domain socket /var/www/vhosts/system/algsulab.com/php-fpm.sock (*) failed
[Thu Jan 27 16:46:50.265143 2022] [proxy_fcgi:error] [pid 9178:tid 139916326221568] [client 78.186.110.247:0] AH01079: failed to make connection to backend: httpd-UDS

the sock file exists and has the correct permissions.

Re: php-fpm of various versions together

Sorry, this looks Plesk specific, and I have no idea how plesk manage its backends...

Try plesk support

Desktop: Fedora 35 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 34 + rpmfusion + remi (SCL only)
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: php-fpm of various versions together

Just found an old dicussion  with link to plesk documentation https://forum.remirepo.net/viewtopic.ph … 915#p11915

Desktop: Fedora 35 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 34 + rpmfusion + remi (SCL only)
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi