Why is virtualmin-lemp-stack dependant on php7.2-fpm?
I want to use php7.4-fpm, however the only way to do that seems to be uninstalling php7.2-fpm, because fpm defaults to the lowest version. However when I uninstall php7.2-fpm and want to later run updates, I get errors saying that virtualmin-lemp-stack dependant on php7.2-fpm.
When I try to update packages via virtualmin, it throws this error: E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution). I’m just nervous if I run this command, it will re-install php7.2-fpm and take down my sites.
Can you explain what you mean by “fpm defaults to the lowest version”? Are you saying Virtualmin is choosing the lowest version or something else is making that decision?
When I have multiple fpm versions installed, it doesn’t let me select a higher version.
I know fpm doesnt support multiple versions at the moment, but I just want to use 7.4.
Seems like it should be. I feel like re-check config or validate virtual servers (I don’t remember which) should detect other versions. It’d be buggy if you can’t choose the latest.
I tried re-check config on a few servers, and couldn’t get it to work without force uninstalling 7.2fpm. I’ve been trying to change the version in the virtual server settings. Is there another way to change it?
I just tried again on a new install to use php7.4-fpm, and it defaults to 5.6, even though I setup up the default template in System Settings > Server Templates > Default Settings > PHP Options to FPM and use version 7.4.
When I try changing it, I get this error: Failed to save PHP versions : The PHP version cannot be changed when in FPM mode
So it seems to me that the only way to use 7.4 is if I uninstall everything lower than it. This is strange.
Thanks. I am using Ubuntu, and I already modified that file. 7.4 shows up, but vmin doesn’t let me use it. It defaults to the lowest version (5.6).
By any chance, does it work on your end?
Thank you, but I did that. I tried this on several servers, new and old. Maybe I’m missing something. Can anyone please confirm that this setup works on their end, and how they achieved it?
Yes, I chose fpm and 7.4 in the server templates page on a new server on the lemp stack. Then I created a new server with the default template, however when the server was created, it was set to v5.6 instead of v7.4, and I can’t change it due to the error posted above.