Sub-server directoryies

Hi everyone, I have searched high and low, asked AI, and maybe i missed something, but I don’t think so.

I am working to migrate about 30 domains from inmotion (uses cpanel) to a new server and virtualmin. In doing so, I am really trying not to have to edit a ton of files do get the directories updated. I have been looking everywhere to remove the /domains/ from the path.

For example,

Current Path: /home/treyb/domains/awesomesite.com/public_html
New Path (Matches Cpanel): /home/treyb/awesomesite.com/public_html

Is there any way to do this? I don’t know why my old cpanel defaulted to this, I know its messy, but its where I am and what I have. I also know it won’t be a problem for all migrated sites, but some do have paths referenced in config and env files and elsewhere on the domains.

Thank you in advance!

SYSTEM INFORMATION
Operating system Ubuntu Linux 24.04.3
Webmin version 2.621 Usermin version 2.521
Virtualmin version 8.0.0 GPL Authentic theme version 26.22
1 Like

set them up as top level servers rather than sub servers, for existing servers use the ‘move server’ function remembering to create a new user (awesomesite for example) for each server and maybe transfer the data from the old mysql database to the newly created one
you would end up with

home/awesomesite/public_html
1 Like

You’re not going to easily get exactly matching paths. We just lay things out differently. There are ways to quickly update paths in code, config files, and databases or whatever.

But, you probably should make them top-level servers if you’re the system administrator on the system, rather than cramming them all into Sub-servers. That puts the sites into /home/domainname/public_html, and makes each site owned by its own use, which is better for security in a shared hosting environment.