• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved LightSpeed - FPM application served by Apache uses wrong PHP Version

yogi70

New Pleskian
Server operating system version
AlmaLinux 8.7 (Stone Smilodon)
Plesk version and microupdate number
Plesk Obsidian Web Pro Edition 18.0.50 Update #2
Symptom: when I change the PHP-FPM version on a subdomain from 7.2.34 to 7.4.33 the hosting still uses the 7.2.34 system. Looks like this happens to all Domains / Subdomains when selecting "FPM Application served by Apache"

I also found this thread Resolved - PHP FPM stuck on OS vendor version but could not find what was done there to solve the issue.
Also my system is not using the OS-Version of PHP - that is 7.2.24

the Domain config is listed in /opt/plesk/php/7.4/etc/php-fpm.d/ and contains
also the apache config file /var/www/vhosts/system/<domainname>/conf/httpd.conf looks fine for me:
Code:
<Directory /var/www/vhosts/<domainname>/shopadmin-dev/public>

                        <IfModule mod_fcgid.c>
                                <Files ~ (\.fcgi$)>
                                        SetHandler fcgid-script
                                        Options +ExecCGI
                                </Files>
                        </IfModule>
                        <IfModule mod_proxy_fcgi.c>
                                <Files ~ (\.php$)>
                                        SetHandler proxy:unix:/var/www/vhosts/system/<domainname>/php-fpm.sock|fcgi://127.0.0.1:9000
                                </Files>
                        </IfModule>

                        SSLRequireSSL

                        Options +Includes +ExecCGI

                </Directory>

If I change from fpm to fastcgi the config file is changed and I get the correct version reported by phpinfo().

The Socket used by the Apache Config is bound to the correkt php-fpm process:
Code:
[root@mail ~]# ps aux|grep php-fpm
root     2824890  0.0  0.0 652388 51112 ?        Ss   Mar04   0:00 php-fpm: master process (/opt/plesk/php/7.2/etc/php-fpm.conf)
root     2895769  0.0  0.0 257436 24080 ?        Ss   Mar04   0:00 php-fpm: master process (/etc/php-fpm.conf)
root     2900144  0.0  0.0 653996 52156 ?        Ss   Mar04   0:00 php-fpm: master process (/opt/plesk/php/7.4/etc/php-fpm.conf)
root     3001196  0.0  0.0 652932 52012 ?        Ss   Feb23   0:50 php-fpm: master process (/opt/plesk/php/8.2/etc/php-fpm.conf)
root     3001212  0.0  0.0 651108 52476 ?        Ss   Feb23   0:14 php-fpm: master process (/opt/plesk/php/8.0/etc/php-fpm.conf)
<user>   3179636  0.0  0.1 680120 86276 ?        R    08:43   0:00 php-fpm: pool <otherDomainName>
root     3179641  0.0  0.0   9216  1152 pts/0    S+   08:43   0:00 grep --color=auto php-fpm

[root@mail ~]# lsof -p 2900144 2>&1 | egrep ' .*(php-fpm|STREAM)'
php-fpm 2900144 root  txt       REG                9,2  6312368 21233974 /opt/plesk/php/7.4/sbin/php-fpm
php-fpm 2900144 root    8u     unix 0xffff8c83f0d5d580      0t0 42103162 type=STREAM
php-fpm 2900144 root    9u     unix 0xffff8c83f0d5ba80      0t0 42103163 type=STREAM
php-fpm 2900144 root   10u     unix 0xffff8c83f0d5ec00      0t0 42103164 type=STREAM
php-fpm 2900144 root   11u     unix 0xffff8c80e9961b00      0t0 42111011 /run/plesk/plesk-php74-fpm.sock type=STREAM
php-fpm 2900144 root   12u     unix 0xffff8c80e9967080      0t0 42111014 /var/www/vhosts/system/shopadmin-dev.silberschmuck.com/php-fpm.sock type=STREAM

PhpInfo reports it's running lightspeed API:
PHP Version 7.2.34
Server APILiteSpeed V7.6
Configuration File (php.ini) Path/opt/plesk/php/7.2/etc
 
Back
Top