How to change home directory?

Hi,

I have transferred a standalone server file to my VHost server.

In standalone server the website directory was /mnt/opt/lampp/htdocs/mydomainname.

Then when created a new virtual machine in VHost server via virtualmin it shows home/mydomainname.

Do I have to transfer all the content from /mnt/opt/lampp/htdocs/mydomainname to

/home/mydomainname

OR change directory to /mnt/opt/lampp/htdocs/mydomainname in virtualmin.

If yes, how to change it. Will my website work?

Howdy,

Virtualmin is setup by default to use /home for websites – it’s simplest to go with that default, as there’s a lot of things that need changed to use a different path.

So my recommendation would be to create a new Virtual Server (which would make an account in /home/username – and then to place your website files in /home/username/public_html.

-Eric

Thanks for the kind advice Eric…:slight_smile: