cyberpanel icon indicating copy to clipboard operation
cyberpanel copied to clipboard

Move websites to their own folder

Open Brugman opened this issue 2 years ago • 4 comments

Websites are currently stored in /home/, but there's also other non-website data in there like:

/home/cyberpanel/
/home/docker/
/home/vmail/

If we are messing around with files for our websites (zipping, unzipping, moving, deleting) we have to be very careful not to touch these system folders.

Could we move all websites to their own folder? For example /home/domains/ or /home/websites/. It would make me feel much safer.

Looking forward to your opinion.

Brugman avatar Apr 14 '22 23:04 Brugman

Websites are currently stored in /home/, but there's also other non-website data in there.

Data like emails (I'd say) should be nested within the /home/$user/ folder (ie. /home/testuser/mail/), so it remains relative to the user. As for cyberpanel/ docker/ etc, I don't see why they need to be stored in /home/?

homedir structures are important with a system like CyberPanel, and in this case issue 854 may be a chance to house-keep. Are the developers open to changing the file system layout somewhat?

Could we move all websites to their own folder? For example /home/domains/

I think this goes against the traditional usage of /home/ and would instead recommend moving system folders out of /home/.

lsthompson avatar Apr 14 '22 23:04 lsthompson

That accomplishes the same goal for me. So I'm equally for it.

Brugman avatar Apr 15 '22 09:04 Brugman

System files should be moved from /Home to /root instead. This way it's not in a general "storage" folder. But I see no big issue having them where they are.

master3395 avatar Apr 18 '22 14:04 master3395

System files should be moved from /Home to /root instead.

Problem is that's not where they belong. Linux has different locations for different resources.

System files don't specifically belong to the root user, rather they're required by the CyberPanel software package.

lsthompson avatar Apr 19 '22 10:04 lsthompson