My first post, so I hope i'm not asking an obvious question;
I'm trying to get Virtualmin to use PHP7.1, with the default php execution mode set to FPM, running NGINX. However, when I select the default PHP version to 7.1 in Server Templates > PHP Options, it always builds a virtual server with PHP7.0 installed. I can't seem to change this setting.
Is it possible to run PHP7.1 using FPM under NGIXN?
Ubuntu Linux 16.04.4
Virtualmin V6.03
wget http://software.virtualmin.com/gpl/scripts/install.sh
sudo /bin/sh install.sh --build LEMP
add-apt-repository ppa:ondrej/php && apt-get update
apt-get install php7.1-fpm php7.1-cgi php7.1-fpm
After rebooting the server, I can see PHP7.1 along with PHP7 installed when I Re-check the configuration. I can also see 7.1 loaded under Server Templates > PHP Options
.
If I set the PHP execution mode to FCGId, and select the Default PHP version to 7.1, it builds the virtual server with the correct version of PHP installed.
Is it not possible to run PHP7.1 using FPM under NGIXN or have I misunderstood something.
Any help appreciated!
Jon, So you and I are in the same small boat adrift in an apache sea... There does not seem to be be much support for Nginx/php-fpm. There is a nginx-fpm Module you can install, but it has it's limitations. For one, in its config, you have to specify the path to the fpm/pool directory. Which is fine if you only support a single PHP version. Myself, I have 5.6, 7.0, 7.1 do to various constraints by various virtual sites.
I have become an expert at modifying nginx virtual sites and fpm configs by hand which defeats the whole purpose of using virtualmin in the first place.
I have asked some questions on this before and have only gotten crickets....
Here is a link to the module: https://github.com/Real-Gecko/virtualmin-nginx-fpm
It certainly seems that way @pingtech.
I saw a nginx-fpm plugin here - is this the one you're talking about? https://github.com/Real-Gecko/virtualmin-nginx-fpm
But in the repo description it states:
So I didn't think I needed to install it.
Multiple PHP versions with FPM would be very very handy however, I'd be happy with getting PHP7 to change to 7.1 as the default PHP version, which doesn't seem to work at the moment using NGINX / FPM.
Would be interested to here the process you go through to get this to work. I guess it would be good for the other people in the small boat with us!