[Cialug] Best practices for isolating Wordpress sites
Adam Hill
adam at diginc.us
Fri Oct 16 14:48:29 CDT 2015
1GB should get you quite a few sites since FastCGI & MySQL don't take up
too much memory and you should be able to share a single service or
container for those 2. Then just give each student a home/workspace(SFTP),
mysql user, and virtual host config to point to said workspace.
RE: Containers, VPS do not always support containers/LXC with their kernel
at which point you're probably stuck with standard virtual hosts & linux
permissions.
If you do have support for and try docker, you would not need to run full
LAMP in every container, you can run the MP (mysql/fastcgi+php) as single
containers, linked up to many containers for the student's workspaces just
like if they were linux services used by multiple virtualhost workspaces.
On Fri, Oct 16, 2015 at 12:53 PM, Matthew Nuzum <newz at bearfruit.org> wrote:
> I found a pretty good tutorial with similar goals for what I want here:
>
> https://www.digitalocean.com/community/tutorials/how-to-host-multiple-websites-securely-with-nginx-and-php-fpm-on-ubuntu-14-04
> (I'll also explore using Apache as well)
>
> I'm really curious to know how many light-duty sites can run on a 512mb -
> 1gb server.
>
> Any thoughts or suggestions would be greatly appreciated. I'll be working
> on it this weekend.
>
>
> On Thu, Oct 15, 2015 at 7:00 PM, Matthew Nuzum <newz at bearfruit.org> wrote:
>
> > I use standard VPS type servers, so I have full control. One concern I
> > have is resource utilization. If I do containers, I’m essentially running
> > an entire lamp stack for each website, right?
> > --
> > Matthew Nuzum
> > newz2000 on freenode, skype, linkedin and twitter
> >
> >
> > ♫ You're never fully dressed without a smile! ♫
> >
> > > On Oct 15, 2015, at 3:50 PM, Jeffrey Ollie <jeff at ocjtech.us> wrote:
> > >
> > > How much control over the virtual host do you have? If you have full
> > root
> > > control, I'd look into containerization (e.g. Docker). That'll get
> you a
> > > lot more security (although not as much as full virtualization) without
> > > using up a lot more resources.
> > >
> > > On Thu, Oct 15, 2015 at 1:53 PM, Matthew Nuzum <newz at bearfruit.org>
> > wrote:
> > >
> > >> I've been managing virtual hosting for quite a while. I'm teaching a
> > class
> > >> on web development* and want to make it easy for the students to set
> up
> > a
> > >> Wordpress site.
> > >>
> > >> There are some nasty plugins and themes out there and of course
> newbies
> > are
> > >> going to find them.
> > >>
> > >> How do hosting companies isolate sites so that PHP files in one site
> > can't
> > >> mess up files in another site? I've got a few ideas (starting with
> > FastCGI)
> > >> but they get complicated as they make the jump from the brain to the
> > >> keyboard.
> > >>
> > >> * I'll be running another class or two - one will be online in the
> > >> evenings, the other will be in-person. You can see details for the
> class
> > >> here
> > >> <
> > >>
> >
> https://www.eventbrite.com/e/learn-professional-web-development-html-wordpress-and-photoshop-tickets-18674915174?discount=webgeek
> > >>> .
> > >> E-mail me and I'll notify you when the next class runs.
> > >> --
> > >> Matthew Nuzum
> > >> newz2000 on freenode, skype, linkedin and twitter
> > >>
> > >> ♫ You're never fully dressed without a smile! ♫
> > >> _______________________________________________
> > >> Cialug mailing list
> > >> Cialug at cialug.org
> > >> http://cialug.org/mailman/listinfo/cialug
> > >>
> > >
> > >
> > >
> > > --
> > > Jeff Ollie
> > > _______________________________________________
> > > Cialug mailing list
> > > Cialug at cialug.org
> > > http://cialug.org/mailman/listinfo/cialug
> >
> >
>
>
> --
> Matthew Nuzum
> newz2000 on freenode, skype, linkedin and twitter
>
> ♫ You're never fully dressed without a smile! ♫
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug
>
More information about the Cialug
mailing list