When I delete a (alias) domain that shares the document root of the main domain, will I delete unknowingly the files of my main domain?
I read quite a bit of that following post and I found it a bit shocking if I understood it the right way.
Does it mean: I might register a new domain within a cPanel account. Technically this will be either an addon domain or an alias domain, even though those terms are not used anymore in cPanel
If it is an alias domain it serves from the same document root.
Here comes the critical part: if the domain (alias domain) gets deleted, the home directory of it will be also deleted. And if its the very same document root (because it's an alias domain) then the actual files of the domain of the actual main cPanel account will be deleted.
Basically, it's super simple to destroy your main website just by setting up an alias domain (by mistake maybe), deleting it again, and deleting everything else with it without actually understanding what's going on under the hood
-
Removing the alias domain does not remove any files or directories.
In that post the files and/or directories didn't get deleted by the removal of the domain, but by WP Toolkit.
If you test this, add an alias domain, and then remove it it shows:
REMOVE THE DOMAINWarning: If you remove the “aliasdomain.com” domain, it will permanently delete the domain from your account. You cannot undo this action. This will not remove “aliasdomain.com”’s document root (/home/username/public_html).
As you see it says "This will not remove...".1 -
Thanks - that's good news
That means for an actual addon domain I must manually clean up the directory e.g. /home/addondomain when I delete the addon domain.
-
I need to check the post again - because I do also delete installs in WP Toolkit but those are WordPress installs. So of course those will delete the files with it. But it won't delete the domain, and I would also not expect that (it's WP Toolkit and not Domain Toolkit)
So then maybe they talk about deleting alias domains with WP Toolkit. And I think I don't understand that part. Why would I have an alias domain and also WP Toolkit. I have WP Toolkit only for actual WordPress sites. If I cannot have WP Toolkit for an alias address, I can also not delete it.
Darn, I am overthinking it and not seeing it
0
Please sign in to leave a comment.
Comments
2 comments