[Discuss] "Stack Script" (shell script) to build Ubuntu LAMP + on Linode

Edward Ned Harvey (blu) blu at nedharvey.com
Sat Apr 18 06:22:45 EDT 2015


> From: John Abreau [mailto:abreauj at gmail.com]
> Sent: Friday, April 17, 2015 9:09 PM
> 
> Perhaps slightly off-topic, but I like to use /srv instead of /var for my
> websites. I create a directory /srv/www, give it a very small lvm volume, then
> create a separate lvm volume for each website under /srv/www.
> 
> That way, If one of the websites goes nuts and tries to fill up the disk, it won't
> stomp on the other websites or the rest of the server.
> There's already more than enough stuff under /var competing for space.

Of course you could do the same thing, where /var/www/www.foobar.com is itself a mountpoint. But by using a nonstandard location such as /srv, you're breaking the default selinux and apparmor rules - so you'll have to manually configure those rules - 

PS. Never expose a web server to the internet without selinux and/or apparmor. And various other security measures.


More information about the Discuss mailing list