default domain

ai8

Verified User
Joined
Mar 14, 2021
Messages
34
Hi DAers,

If for some reason the default domain for a user account goes missing or was deleted accidentally,
but the files were kept intact, how can one recreate the default domain?

On the first attempt when trying to create a new new one, "too many symlinks" or so comes up, one further attempts, "already exists" comes up from the domain field. However, no new (default) domain is created...
So how can this be fixed?

Thx!
:)
 
So the default domain was deleted accidentally, but the files were kept intact?
Exactly where and which files were kept intact?
Any clue on how to domain got deleted?
 
Yes, for some reason the default domain of a user account went missing or was deleted accidentally.

It is unclear exactly how much was kept, but from the hint that comes up when you want to delete the default domain, you can hopefully see what is meant. But not having designed DA and not having compared the two states before and after such deletion, one cannot say for sure. But it shall be stressed that deletion might not be the cause, though if in doubt it might be better to opt for that, since files are visible in the file manager and so are databases related to the default domain.

Could have been anyone with access to the level to delete it (or do you have better ideas)?

Coming back to the original question, how can one recreate the default domain?

Thanks in advance for any solution!
:)
 
It's easy to compare which default dirs and files should be present and what is still there or what is gone.
Without this knowledge, it can be said for sure how to recreate the default domain.

Any other domain on the account?
If not, the best way to delete the account remove the domain from the admin DNS manager and recreate the account.

If there are other domains on that account, only restore might also be to login as admin, and remove anything left from the domain, so enter the DNS manager and remove the domain from the DNS manager.
This might prevent the "already exists" error.
Then check via SSH at /home/user/ if the domain name is present there and if yes remove it from there too.
Als check /usr/local/directadmin/data/users/user/domains.list and remove it from there.
And also /user/local/directadmin/data/users/domains/ (the directory) and remove from there.

However, all files in the domains (so website) will be lost. If you have any website files left and maybe database, create a backup of it before you begin.
 
In the end, only from admin level it could be resolved, neither the user nor a reseller could do it.
Files were replaced from a backup.

This bug/error does not happen if another domain is first setup.
A wanted/accidental delete of the main domain will then not block the setup of another domain.

I have not tested this recently, but report from memory (which might be incomplete).
Just wanted to give an answer after all this time and thank everyone who helped!
 
Back
Top