Wouldn't this destroy Virtualmin configs?

Latest version of VirtualMin
Running on Ubuntu
Trying to install php soap extension. I have php 8.1 running in FPM.
When I try to do apt install php8.1-soap - I see it trying to php8.1-cli ← I vaguely recall installing that package in a previous installation and it breaks php and virtualmin

Is there another way I should be install the soap extension?

If you setup the repo from the Multiple PHP docs there should be no problem.

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

what do you mean seeing php-cli? I see this

do you see the remi-safe repo?

php-cli is fine, as is php8.1-cli. I’m guessing you previously installed php or php8.1 or php8.1-php which installed mod_php, which breaks everything PHP (it does not, however, do anything to Virtualmin, as Virtualmin is not a PHP application).

Don’t install mod_php. Don’t install any packages that depend on mod_php. php-cli does not depend on mod_php.

Or, just follow our instructions for installing other PHP versions (linked by Stefan already), and you won’t have to worry about it. You would already have php-cli for each of the versions of PHP you installed (and you would not have installed mod_php, which would break everything PHP on your system).

Apologies I am answering via email. Thank you for the quick response.

I took the risk and chose yes.

When I did the apt install php8.1-soap it listed more things (packages) compared to your screenshot which confused me.

As an example is listed php8.1-cli and even php8.1-gd which I assumed should have already been installed.

I think it is how the apt words things since it said it was going to install it and it also said it was going to upgrade it.

Coming from CENTOS 7, I vaguely remembered install the php-cli package would break the setup so I guess it’s different for Ubuntu?

Ahh thanks Joe, that is probably it (on CENTOS). Thanks for clarifying that!

No, php-cli is also fine on CentOS. mod_php (and any package that depends on mod_php) is always the problem on all supported distros.

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