If the hestia configuration files in each user directory is not screwed up,you will be able to restore everything without problems. here are the steps:
Make a zip of the following directories, each seperate:
/etc
/home
/usr/local/hestia
This is a compulsary task in such a situation because if you have these things in your pocket, then you can restore evry thing manually, of course you should know what you are doing âŚ.
In the /usr/local/hestia/hestia.conf change the version to the following:
VERSION=â1.0.0â
Then execute followiong set of commands:
cp /usr/local/hestia/install/common/sudo/hestiaweb /etc/sudoers.d/
v-add-sys-dependencies
apt -y remove hestia-nginx hestia-php
apt -y install bubblewrap
apt -y install --reinstall hestia
apt -y install hestia-nginx hestia-php
Mind you, as you are downgrading the hestia version to 1.0.0., it will go through updating the system files and environment and will produce some errors. This is normal.
For example, now you must have defined an admin name. Earlier, the admin user was a system default and you could not define it. So obviously it will generate errors. However, it will do many other things that the whole installation will be repaired.
It will not break your installtion so do not be scared. It will go through lot of things like templates, checking permissions, etc. So rebuilding config files is - in many cases - not sufficient at all. In these cases, only such an aggressive repair remains the only solution.
Some members have executed in the past my above solution and have had a success. You may want to read their post and see if there is something in parallel.
The above solution is not just for email services. It will repair and restore everything. In case if you are curious on the solution I have given above and what it will do, you can have a look at these update scripts residing under the hestia system installation.
To be honest, it is a complete wrong idea to enforce everyone to install hestia on a fresh installation. I do not agree with this basic and fundamental approach that has been pumped in Vesta. This idea has been taken over or carried forward by the hestia team. While I know that having one main installer, it becomes much easier to handle everything.
Things like this what you are facing, and what I have faced lots of times, can happen to every one. As an admin, our tools and instruments must be ready or available to help us out. But the answer âInstall everything freshâ is for me a No-Go. Therefore, I have discovered my tricks of repairing it, which works!
Good luck!