You are not logged in.
Hi,
I'm serving websites (trough Python). For the moment the venv are located under /home/aUser/Sites I'm wondering if it's a good place ? Maybe a place like /Sites will be better ?
Is there any concern doing so ?
Thanks.
Linux noob, plz be kind
Offline
Hello,
It's technically possible. But:
I always used a dedicated partition mounted on /server for such uses.
For example :
/server/web/
/server/web/http/
/server/web/python/
/server/ftp/
/server/whatever-db/
etc,
That way your web services will never fill up your root filesystem, and it was usual to do so with all kinds of Enterprise Linux Distros.
But my experience with that is 10+ years old. Possibly new habits did appear?
Just my considerations..... hope it is meaningful.
PS: in fact, it's just another name, but it's on its own partition or filesystem.
Last edited by Andre4freedom (2024-07-13 15:44:48)
Offline
It won't make really any difference where it's placed - Rather it's matter of taste and if one likes to keep things in order.
What will make difference though is if it's separated or on same filesystem as rest of the system. I also recommend to have it as separate partition for same reason as above + being independent from system partition it can have alternative filesystem (or same filesystem but with different filesystem and mount options)
On my server I use /srv as a mountpoint for such stuff:
// https://refspecs.linuxfoundation.org/FH … 03s17.html
/srv contains site-specific data which is served by this system.
Last edited by pl (2024-07-13 18:07:03)
Bound for better weather...
Offline
Thank you @Andre4freedom & @pl
Linux noob, plz be kind
Offline
@pl
right you are, and /srv it was.
It makes sense. Most important: keeping it as a separate partition mounted on a mountpoint (/srv).
All of you, have a great day.
Offline