Submitted by dinis on Wed, 04/04/2018 - 05:54
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
Submitted by JamieCameron on Thu, 04/05/2018 - 23:39 Comment #1
This problem should go away with the next Virtualmin release, which has proper PHP 7.2 support.
Submitted by dinis on Thu, 04/26/2018 - 04:37 Comment #2
Hi Jamie, When do you think the next Virtualmin release will be available?
Submitted by JamieCameron on Fri, 04/27/2018 - 23:18 Comment #3
It was released yesterday
Submitted by dinis on Mon, 05/07/2018 - 16:17 Comment #4
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
Submitted by JamieCameron on Mon, 05/07/2018 - 17:32 Comment #5
The work-around is to remove the FPM 5.6 config directory from under /etc/php
Submitted by dinis on Mon, 05/07/2018 - 20:05 Comment #6
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