- Server operating system version
- Ubuntu 18.04.6 LTS
- Plesk version and microupdate number
- 18.0.49
Symptom: I try to set tht PHP handler of a website in Domain settings to PHP 8.1 FPM. When I open up the phpinfo() of this website it says:
The domain config is listed in /opt/plesk/php/8.1/etc/php-fpm.d/, however it still falls back to PHP 7.2 CGI, but why?
I tried:
But it had no effect.
The PHP 8.1 FPM handler seems to be up and running:
Does anyone know what is going on here? I'm quite out of ideas how to better track this down.
Don't know if this helps, but here is the PHP handler list:
PHP Version 7.2.24-0ubuntu0.18.04.16
Configuration File (php.ini) Path | /etc/php/7.2/cgi |
Loaded Configuration File | /etc/php/7.2/cgi/php.ini |
The domain config is listed in /opt/plesk/php/8.1/etc/php-fpm.d/, however it still falls back to PHP 7.2 CGI, but why?
I tried:
Code:
# plesk repair web -php-handlers -php-fpm-configuration
The PHP 8.1 FPM handler seems to be up and running:
Code:
plesk-php81-fpm.service - The PHP 8.1.16 FastCGI Process Manager
Loaded: loaded (/lib/systemd/system/plesk-php81-fpm.service; enabled; vendor preset: enabled)
Drop-In: /lib/systemd/system/plesk-php81-fpm.service.d
└─limit_nofile.conf, respawn.conf
Active: active (running) since Thu 2023-02-23 04:04:43 CET; 2 days ago
Main PID: 31357 (php-fpm)
Status: "Processes active: 0, idle: 0, Requests: 1, slow: 0, Traffic: 0req/sec"
Tasks: 1 (limit: 105)
CGroup: /system.slice/plesk-php81-fpm.service
└─31357 php-fpm: master process (/opt/plesk/php/8.1/etc/php-fpm.conf)
Feb 23 04:04:42 h2891136.stratoserver.net systemd[1]: Starting The PHP 8.1.15 FastCGI Process Manager...
Feb 23 04:04:43 h2891136.stratoserver.net systemd[1]: Started The PHP 8.1.15 FastCGI Process Manager.
Feb 24 13:09:56 h2891136.stratoserver.net systemd[1]: Reloading The PHP 8.1.16 FastCGI Process Manager.
Feb 24 13:09:56 h2891136.stratoserver.net systemd[1]: Reloaded The PHP 8.1.16 FastCGI Process Manager.
Feb 25 17:39:33 h2891136.stratoserver.net systemd[1]: Reloading The PHP 8.1.16 FastCGI Process Manager.
Feb 25 17:39:33 h2891136.stratoserver.net systemd[1]: Reloaded The PHP 8.1.16 FastCGI Process Manager.
Feb 25 17:59:21 h2891136.stratoserver.net systemd[1]: Reloading The PHP 8.1.16 FastCGI Process Manager.
Feb 25 17:59:21 h2891136.stratoserver.net systemd[1]: Reloaded The PHP 8.1.16 FastCGI Process Manager.
Does anyone know what is going on here? I'm quite out of ideas how to better track this down.
Don't know if this helps, but here is the PHP handler list:
Code:
# plesk bin php_handler --list
id: display name: full version: version: type: cgi-bin: php-cli: php.ini: custom: status:
cgi 7.2.24 by OS vendor 7.2.24 7.2 cgi /usr/bin/php-cgi /usr/bin/php /etc/php/7.2/cgi/php.ini false disabled
fastcgi 7.2.24 by OS vendor 7.2.24 7.2 fastcgi /usr/bin/php-cgi /usr/bin/php /etc/php/7.2/cgi/php.ini false disabled
fpm 7.2.24 by OS vendor 7.2.24 7.2 fpm /usr/sbin/php-fpm7.2 /usr/bin/php /etc/php/7.2/fpm/php.ini false disabled
module 7.2.24 by OS vendor 7.2.24 7.2 module /usr/bin/php-cgi /usr/bin/php /etc/php/7.2/apache2/php.ini false disabled
plesk-php81-cgi 8.1.16 8.1.16 8.1 cgi /opt/plesk/php/8.1/bin/php-cgi /opt/plesk/php/8.1/bin/php /opt/plesk/php/8.1/etc/php.ini true disabled
plesk-php81-fastcgi 8.1.16 8.1.16 8.1 fastcgi /opt/plesk/php/8.1/bin/php-cgi /opt/plesk/php/8.1/bin/php /opt/plesk/php/8.1/etc/php.ini true enabled
plesk-php81-fpm 8.1.16 8.1.16 8.1 fpm /opt/plesk/php/8.1/sbin/php-fpm /opt/plesk/php/8.1/bin/php /opt/plesk/php/8.1/etc/php.ini true enabled
plesk-php81-fpm-dedicated 8.1.16 8.1.16 8.1 fpm /opt/plesk/php/8.1/sbin/php-fpm /opt/plesk/php/8.1/bin/php /opt/plesk/php/8.1/etc/php.ini true enabled