Ok, so apt remove php8.3 does not work,
but boy oh boy apt purge php8.3-fpm does.
It allows me to reinstall php, and I was able to setup the services you mentioned above!
New problem: it’s not enough?
Mediawiki doesn’t work now, since I am missing PHP extensions.
https://paste.yunohost.org/raw/azezequvak
…And boy is this a nightmare! Even though I reinstalled php, I’m having to create many directories. (honestly my fault; I deleted them because I didn’t want to remove the media pools individually, but c’mon, I expected the folders to be properly regenerated on a fresh install!!!) e.g. php/8.3/cli ← that directory was not created? Installing modules isn’t going well, since the mods-available folders don’t exist, so php thinks there are no modules?
So, I create the folders manually, including cli/mods-available and fpm/mods-available, then I have to purge the modules, and reinstall them so that they’ll actually create the .ini files.
And with that, mediawiki works again! Roundcube does not, but who cares about roundcube? I’ll probably just have to reinstall.
For those following along at home:
apt purge php8.3-{cli,fpm,common,mbstring,xml,curl,zip,gd,mysql,bcmath,intl,opcache,readline,ctype,iconv,fileinfo,intl}
apt install php8.3-{cli,fpm,common,mbstring,xml,curl,zip,gd,mysql,bcmath,intl,opcache,readline,ctype,iconv,fileinfo,intl}