These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Specify another directory rather than /home for websites? on the new forum.
Hi,
Is there a way in Virtualmin to tell the system to use a different directory for a website rather than /home?
I have a partition of 20GB mounted on a directory called /extraspace and would like to use that one instead of home for new virtual servers, my old virtual servers are in /home but I may run out of space if I continue adding sites to that directory.
Thank you!
Howdy,
That sounds like it's related to your question here:
https://www.virtualmin.com/node/23265
Is it possible? Yes.
It is easy? No :-)
All your config files are setup to use /home already, and it's not trivial to change all those.
However, even if you were starting from scratch, suexec is setup to work using /home, and it can take some work to get it to use an alternate directory.
Our recommendation is to do the steps mentioned in your other post -- to mount your partition at another location, copy all your data to it -- and then once all your data is on it, to mount that drive as /home.
-Eric