The officially official Devuan Forum!

You are not logged in.

#1 2024-07-13 15:15:33

SpongeBOB
Member
From: Brussels
Registered: 2022-02-07
Posts: 127  

[SOLVED] Directory question.

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 big_smile

Offline

#2 2024-07-13 15:42:06

Andre4freedom
Member
Registered: 2017-11-15
Posts: 174  

Re: [SOLVED] Directory question.

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

#3 2024-07-13 18:00:47

pl
Member
From: /etc/fstab
Registered: 2024-04-12
Posts: 18  
Website

Re: [SOLVED] Directory question.

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

#4 2024-07-14 04:57:25

SpongeBOB
Member
From: Brussels
Registered: 2022-02-07
Posts: 127  

Re: [SOLVED] Directory question.

Thank you @Andre4freedom & @pl


Linux noob, plz be kind big_smile

Offline

#5 2024-07-14 08:36:08

Andre4freedom
Member
Registered: 2017-11-15
Posts: 174  

Re: [SOLVED] Directory question.

@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. wink

Offline

Board footer