Partitions for websever

Hey guys, I'm completely new to linux and webservers. I'm just trying to get educated on setting up the server. I have about 25 domains that I would like to host on my server. There are pretty much just blogs(wordpress) and a couple of ecommerce stores.

Would it be fine to utilize all of my server disc space to use as the webserver or should I save some space on the disc for other uses(I have no idea what they could be, just wondering) ?

The only purpose for this server is to host websites.

Thanks in advanced for your input.

Tone

3 Replies

It's generally easier just to have two or 3 partitions.

By default you have two, one for storage and one for swap.

I personally have three, one for tmp as well (so the tmp folder can't chew up my hard drive space).

You should always have some free space on your server otherwise things like databases, log files etc will stop working.

I tend to keep 20% free space if possible.

@obs:

I personally have three, one for tmp as well (so the tmp folder can't chew up my hard drive space).
One for /var/log as well, assuming that's where you keep your access_logs. You don't want a DDoS or overly-agressive spider filling up your / partition.

These days I generally have partitions for:

/

/tmp

/var/log

/var/log/audit

/var/ossec

Also, depending on the applications and if it's a multi-user system, I might also have:

/home

/var/spool

/var/www

/oracle

With lvm, there is little reason to be afraid of partitioning, and separating things helps keep the system stable and running in the event of a runaway process, along with allowing for flexible mount options (e.g. noexec for /tmp) that can increase security.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct