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?
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).