Stable Ubuntu 18.04 Virtualmin Pro system multiple PHP versions needed per domain hosted

SYSTEM INFORMATION
OS type and version 18.04.6
Webmin version 2.013
Virtualmin version Pro 7.4
Related packages PHP

Hello,

I have a long running and stable Ubuntu 18.04 based Virtualmin host. It is running the stock versions for 18.04 of Apache and PHP.

I need to have multiple PHP versions installed and operable essentially per domain without impact to existing domain.

Example. I need to install Nextcloud for a client the only version of PHP on the server is PHP-FPM 7.2.24 Server. I need 7.3+ to be able to install nextcloud for that client domain.

I have read a number of articles that seem to suggest it is a simple process such as this one:

https://archive.virtualmin.com/documentation/web/multiplephp

However there are many many posts regarding broken systems once installing multiple versions under virtualmin.

Can you provide some assurance that following the guide above will now break my existing system and result in domain websites going offline due to broken PHP subsystem. Or can you provide direct support to assist me as a Pro customer in achieving the desired outcome.

Thank you in advance.
Cheers
Spart

Nobody can do that.

Reason: Your OS (Ubuntu 18.04) will be end of life in 2 months. What’s more, php 7.2 was end of life November, 2020. PHP 7.3 was end of life December, 2021. Even php 7.4 was end of life as of November, 2022 although a lot of folks are still using it.

You are pretty much at the point that you have to simply try it and hope for the best. Constantly using old, outdated, end of life software is literally a “use at your own risk” proposition. They’re end of life for a reason. Nobody is going to guarantee or assure you that it’s going to work.

Our 18.04 system will be supported until 2028 under ESM.

But I take your point. So what would your least risk advice be for resolving this issue and getting another PHP version installed and would you suggest installing the latest PHP version or the minimum supported version for nextcloud which is 7.3X.

Cheers
Spart

I’m a little confused by your wording. One php per server I think. One client can have multiple servers if you want to use sub servers. I don’t know of the web server being able to distinguish different php versions ‘per app’.

image

image

Semantics.

I am using expecting the new PHP version to be installed at the VIRTUALMIN HOST level and then used at the individual virtualmin domain (virtual server) level. So the host will have multiple PHP versions installed.

So existing hosted domains (virtual servers) would be left untouched using their current PHP version and we could enable PHP NEW VERSION for one or more of them to satisfy application dependencies.

Cheers
Spart

Ubuntu sucks the Debian teat. Extended is a somewhat fleeting term. It is a paid service IF someone wants it enough to pay for it. Don’t be lulled into sitting on an old distro because you think it is safe. Probably the worst of the worst security vulnerabilities get patched but it’s probably on you to stay on top of it. Just understand the process.

wiki.debian.org/LTS/Extended

That covers the default PHP version provided by the Ubuntu folks. All of the other third-party PHP versions will reach EOL on their own schedule, and it definitely won’t be in 2028. Most are only maintained as long as the upstream version is maintained, since the people maintaining those packages are mostly packagers, not PHP maintainers able to backport security fixes and such from maintained versions (which is what the OS vendors do in their PHP packages).

It is likely safer to run the old Ubuntu-maintained PHP 7.2.x package than a “newer” PHP 7.4, which reached EOL last year. If you’re going to chase the cutting edge, you need to really chase it, and stick to a maintained version of PHP (that’d be some 8.x version right now).

If you need new PHP versions, running a new OS is recommended, since the OS provided packages will be better maintained and for longer than what any third party (like the Sury repos) could offer.

1 Like

Ubuntu has 33.9% of all Linux installations on earth.

Debian is a very distant second place with 16.7%.

Thanks Joe, Yes that is our dilemma.

Officially supported versions from Ubuntu are:

18.04 7.2
20.04 7.4
22.04 8.1

In order to minimise risk the prudent but not inexpensive option says start fresh on a 22.04 minimal base and install Vpro then recreate the domain and ‘migrate’ the data and switch DNS over and then catch up any out of sync data and deal with all of the usual DKIM SPF ACME IP Reputation etc.etc. issues.

Cheers
Spart

Which changes nothing of what I said. When I was looking at Ubuntu thinking it would be better for Mailman3, turns out nope. Debian 11 runs Mailman3 just fine. Ubuntu was waiting for Debian packagers to make changes because they got out front and couldn’t run it yet. So, yeah. What I said is accurate.

Not a OS war please

Yeah. I was trying to show the OP that support may not be what they think it is. I was considering Ubuntu because of the ‘lts’ until I realized exactly what that meant. FOSS moves forward for a reason and it is with good reason they leave the old to wither on the vine. Product was $0. Upgrade is $0. Take it or leave it. :wink:

Seriously, the landscape being what it is now days? Why upgrade in place and risk breaking stuff? You can rent VM’s by the minute now days. I’ve spent long nights doing upgrades that didn’t go well. Never again. Spin up new, test, migrate. Then you can prep the old and move back. $10 for a couple days on an AWS VM sure beats the agony of a failed upgrade.

Y’all are going way off topic. If you want to talk about something other than the original question, start your own topic.

1 Like

My 2 cents on the official docs found here Multiple PHP Versions – Virtualmin

Is that I have never had a problem (that I can remember) when following this. I use CentOS / now Alma Linux and have the very latest versions of php available to my customers (currently 8.2.4 as well as versions back to I think the default 7.4 that Alma 8 installs).

In short I would and do feel confident following the directions on that page.

1 Like

they work fine, I use Rock9. Just replace the number you want. ie if you want 8.2 use
dnf install php82-php-{cli,fpm,pdo,gd,mbstring,mysqlnd,opcache,xml,zip}

Just did it then works fine.

@apt_virtualmin @stefan1959

Thank you for the information. We have a plan and will be trying this overnight tonight.

We will clone our prod environment then test on the clone then kill it and implement on the live if successful.

Cheers
Spart

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.