convert sub-server to primary

Hello, I’m using virtualmin pro and I want to convert a subserver (e.x. to a primary ( and also move all files and databases to the new account… How can I do that?

Use the “Move Virtual Server” form. It’s in the Server Configuration menu. The “Convert to parent” option will make it into a primary and handle moving all of the files.