When selecting FPM mode, php7.2: A- gets broken if there is only php7.2 installed; B -If there is php7.0 installed, It switches to php 7.0 fpm

OS: Debian 9 Might be related to issues https://www.virtualmin.com/node/55788, https://www.virtualmin.com/node/53268.

Steps to replicate A: 1 - install php 7.2 and uninstall php 7-0 2 - switch to php fmp mode. Virtualmin overwrites the apache settings that make php7.2 fpm work (< FilesMatch .php$ > SetHandler "proxy:unix:/var/run/php/php7.2-fpm.sock|fcgi://localhost/" < / FilesMatch >). Steps to replicate B: 1 - install php 7.2 and keep php 7.0 2 - select php 7.2 and fpm mode Virtualmin will change to php 7.0 fpm

Another related issue (even tough I don't know if it is the way php7.2 works: Choose php 7.2 FCGI > the version that will be usedues the cgi folder (but actually I don't know if this is simply the way php 7.2 works.

Status: 
Active

Comments

This problem should go away with the next Virtualmin release, which has proper PHP 7.2 support.

Hi Jamie, When do you think the next Virtualmin release will be available?

It was released yesterday

Hi Jamie. I installed a new server with the latest virtualmin version (6.03 ). It installs php versions from 5.6 to 7.2.5. I want to work with php7.2 fpm. However if I choose, for any domain, php fpm mode, it automatically falls back to php 5.6 fpm. If only allows php 7.2 ci/fcgi with Configuration File (php.ini) Path /etc/php/7.2/cgi . DO I need to do anything special to make virtualmin work with php 7.2 FPM? Best

The work-around is to remove the FPM 5.6 config directory from under /etc/php

Hi. After deleting I got this error: Changing PHP execution mode to FPM (run as virtual server owner) .. .. done Changing number of PHP sub-processes to 4 .. .. done Restarting PHP-FPM server .. .. failed : sed: can't read /etc/php/5.6/fpm/php-fpm.conf: No such file or directory Starting php5.6-fpm (via systemctl): php5.6-fpm.serviceJob for php5.6-fpm.service failed because the control process exited with error code. See "systemctl status php5.6-fpm.service" and "journalctl -xe" for details. failed! Applying Nginx configuration .. .. done

UNinstalled php5.6 and it falls back to php 7.0fpm. Uninstalled php 7.o and it falls back to 7.1.....When choosing fpm mode, it falls back to the oldest php version. Ended up uninstalling all versions except the 7.2. So, I am solved. Anyhow you might want to take a look into how virtualmin checks users' preferences. BR Dinis