Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Wordpress multisite on 256 mb vps
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Wordpress multisite on 256 mb vps

I have a VPS with 256 MB ram.

I need to run wordpress and showcase multiple themes. I believe Wordpress Multi-site is the way to go.

This site is mainly for demo purposes. I do not anticipate a high traffic on the server atleast for now.

What are some of the best practices to get it setup in terms of software setup and optimizations?
a. OS (CentOS 6 32 bit)
b. Web server (Apache or ngix or lighthttpd)
c. optimizations for them?
d. recommended plugins for wordpress for caching

Thanks in advance.

«1

Comments

  • smansman Member
    edited November 2013

    disable innodb in /etc/my.cnf

    skip-innodb

    If running Apache reduce MaxClients in /etc/httpd/conf/httpd.conf so something like

    <IfModule prefork.c> StartServers 3 MinSpareServers 3 MaxSpareServers 5 ServerLimit 10 MaxClients 10 MaxRequestsPerChild 4000 </IfModule>

    <IfModule worker.c> StartServers 1 MaxClients 10 MinSpareThreads 1 MaxSpareThreads 4 ThreadsPerChild 25 MaxRequestsPerChild 0 </IfModule>

  • Thanks @sman. Is Apache preferred? or should I select some other webserver?

  • Use nginx!

  • plumbergplumberg Veteran
    edited November 2013

    @Mun said:
    Use nginx!

    I see. will look into that alternative too. Hopefully nginx can be setup on webmin...

  • plumberg said: I see. will look into that alternative too. Hopefully nginx can be setup on webmin...

    You really shouldn't have more than one multi-purpose shell on a server at a time.

  • jarjar Patron Provider, Top Host, Veteran
    edited November 2013

    Really shouldn't have webmin at all on a 256mb VPS meant to serve a multisite Wordpress. You may not expect much traffic, but what happens when you get scanned by a douchebag or crawled by Google & Bing at the same time? It gets bad. Use as much CDN as possible, always use caching to minimize SQL queries, combine your css/js...hell just use mod_pagespeed and WP Super Cache and be done with it ;)

  • well, I am not a pro sys-admin. I find webmin to be a savior in helping me get through situations where command prompt fails me :)

    I understand webmin is not the way to go, any other light weight GUI for managing the VPS?

  • @Rallias said:
    You really shouldn't have more than one multi-purpose shell on a server at a time.

    What does this mean? no more tha one multi-purpose shell?

  • jarjar Patron Provider, Top Host, Veteran

    @plumberg said:
    well, I am not a pro sys-admin. I find webmin to be a savior in helping me get through situations where command prompt fails me :)

    I understand webmin is not the way to go, any other light weight GUI for managing the VPS?

    Learn the shell with tutorials, just get tutorials on each task one at a time. The memory usage of any GUI panel is a waste when we're trying to get the most out of memory. One step at a time, happy to help you find tutorials for any step.

  • @plumberg said:
    What does this mean? no more tha one multi-purpose shell?

    A common joke is that Wordpress is a shell that also acts as a blog. Webmin is by definition an authenticated shell.

  • Install Debian 7 32 bit, then install csf, nginx, php5-fpm, and mysql. Tweak the configuration. Ta da..

  • i recommend to choose from many install script readily available. e.g. minstall, tuxlite

  • smansman Member
    edited November 2013

    Just once I would like to see a thread without "use nginx" fanboys who just think it's better with no evidence either way because...shiny!

  • @sman said:
    Just once I would like to see a thread without "use nginx" fanboys who just think it's better with no evidence either way because...shiny!

    You want to know WHY nginx is so often loved? Because you can actually get performance out of it easily. With Apache, you have to sacrifice concurrency to get per-request speed boosts.

  • smansman Member
    edited November 2013

    @Rallias said:
    You want to know WHY nginx is so often loved? Because you can actually get performance out of it easily. With Apache, you have to sacrifice concurrency to get per-request speed boosts.

    Show me the numbers from credible sources without an agenda. Particularly in a shared hosting environment with dynamic php driven content. Otherwise you may as well say the moon is made of cheese.

  • @sman said:
    Show me the numbers from credible sources without an agenda. Particularly in a shared hosting environment with dynamic php driven content. Otherwise you may as well say the moon is made of cheese.

    Do you ever try using it? :)

  • @budi1413 said:
    Install Debian 7 32 bit, then install csf, nginx, php5-fpm, and mysql. Tweak the configuration. Ta da..

    I have always heard around that centos is more stable and preferred for web hosts. curious what advantages does debain have over centos? I have never used debain...

    @jcaleb said:
    i recommend to choose from many install script readily available. e.g. minstall, tuxlite

    Thanks, is there anything similar for centos?

  • You need only
    http://lowendbox.com/blog/yes-you-can-run-18-static-sites-on-a-64mb-link-1-vps/
    with maybe
    CGI/FastCGI XCache sshd-off exim-off
    Remove webmin

  • @nocom said:
    You need only
    http://lowendbox.com/blog/yes-you-can-run-18-static-sites-on-a-64mb-link-1-vps/
    with maybe
    CGI/FastCGI XCache sshd-off exim-off
    Remove webmin

    Awesome. let me check

  • @plumberg said:

    >

    Not much different. But Debian use lower resources. :D

  • @budi1413 said:

    Debian and Centos are both GNU/Linux so they are at least 80% exactly the same. If Debian does use less resources it would only be because of default settings which you can change. So blanket statements like that are misleading.

  • I got the vps setup with debain minimal and installed lighthttpd with wordpress. I enabled multisite (subdirectory) in wordpress. All good so far.

    I added a new site to my network (demo1), but, that gives a 404 error. What is it that I need to do to get multi-site working?

  • @plumberg said:
    I got the vps setup with debain minimal and installed lighthttpd with wordpress. I enabled multisite (subdirectory) in wordpress. All good so far.

    I added a new site to my network (demo1), but, that gives a 404 error. What is it that I need to do to get multi-site working?

    Hi, just a passer by to correct regarding "Debian" not "debain", i'm not sure if its only typo error but i read it many times, so yeah. That's all. thank you. :) Lols

  • I have the exact same setup. but, still, i am unable to access my sites on network

  • nocomnocom Member
    edited November 2013

    rewrite rule inside lighttpd.conf?

    rewrite enabled?

    /etc/lighttpd/lighttpd.conf

  • Ugghhh.. I was writing the re-write rule under .htaccess file.
    As soon as I put it in lighttpd.conf, it looks to be working :)
    Thanks.

  • Great btw lol

  • jarjar Patron Provider, Top Host, Veteran
    edited November 2013

    @sman said:
    Just once I would like to see a thread without "use nginx" fanboys who just think it's better with no evidence either way because...shiny!

    Yep. Blog in my signature is running straight up LAMP server with varnish, but honestly I had it so optimized pre-varnish that it doesn't really help. Apache is awesome and so much more mature for fine tuning for those willing. Nginx isn't bad, but I will always love apache. Neither one of them is point, click, optimized. Takes no less work to optimize nginx, just has a few handy scripts floating around here to make it easier is all.

  • smansman Member
    edited November 2013

    @jarland said:
    Yep. Blog in my signature is running straight up LAMP server with varnish, but honestly I had it so optimized pre-varnish that it doesn't really help. Apache is awesome and so much more mature for fine tuning for those willing. Nginx isn't bad, but I will always love apache. Neither one of them is point, click, optimized. Takes no less work to optimize nginx, just has a few handy scripts floating around here to make it easier is all.

    I use nginx for some python stuff. I has nothing to offer for dynamic content PHP frameworks which includes Wordpress. For low traffic low memory either one will do regardless of what framework you are running. You can optimize Apache to use less memory as I showed further up. The memory usage is a stupid strawman argument used by fanboys. Non issue on small sites which is 95% of the time. If you have a big website serving millions of hits, how much memory you use will probably be pretty far down the list of importance.

    I have a 256MB server with VirtualMin running multiple dynamic PHP websites on MySQL and Apache. Not a problem.

Sign In or Register to comment.