@nxcl – You are in trouble and you may have lost your data or may lose it inadvertently. Honestly, this way of procedure was not exactly brilliant.
Warning: You may lose all of your data (inluding the data of presumed customers) if you have no backup.
Please make a full backup of both the database and the
nextcloud/data file tree onto an external volume. Afterwards detach this volume from your computer and put this backup volume in a secure and safe place.
IMHO your team seems to be completely in the dark. If you are a business and if you truly have employees please get somebody professional to assist you at your earliest convenience.
Unfortunately, you did not although your statement is correct. Apparently, you did not only ‘purge’ the
php-fpm module but instead you may have removed any and all PHP modules and thus the complete PHP software package including all configuration files from your system.
- Please recall the phrase ‘remove’ but not ‘purge’ was used by me above.
- Please be aware that the wildcard operator
php* addresses any and almost all PHP modules on your system.
- Please consult the CLI manual for the
apt command by help of the CLI i.e. just make a
man apt and look for the entries of ‘remove’ and ‘purge’ please.
- Please consider the grave error you may have made and you may have destroyed your PHP configuration completely and utterly lost any chance of safe return inadvertently.
Please think first, act second only and always have the protection of your data in mind.
BTW a kind gesture like problem solved (i.e. ) or a little ACK to one or more of my comments (i.e. click on the heart icon ) would show you are satisfied. This could be a kind gesture and would motivate me like authors of other advice to continue in lending a hand freely…
Please immediately start studying the basics and in your own best interest consult the documentation:
Take your time to study and make some trials in a safe environment. Consider to install a test system, if you have a spare machine at hand and you can afford the time.
Stick to the more known Un*x flavours. Naturally, you can choose Ubuntu, CentOS, FreeBSD, ArchLinux and probably NextCloudPi or other flavours besides Debian Linux. Also available are some other OS …
As I am in a good mood today and lending a hand please find an excerpt from the a.m. APT manpage:
Removing a package removes all packaged data, but leaves usually small (modified) user configuration files behind, in case the remove was an accident. Just issuing an installation request for the accidentally removed package will restore its function as before in that case. On the other hand you can get rid of these leftovers by calling purge even on already removed packages. Note that this does not affect any data or configuration stored in your home directory.