Howdy, Stranger!

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


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
Shells Virtual Desktop
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

2»

Comments

  • Because you love apache doesn't mean other people cannot use other type of webserver and you can mad at them if they using it lol. It's just everyone personal preference. Just saying.

  • smansman Member
    edited November 2013

    sman said: argument

    @budi1413 said:
    Because you love apache doesn't mean other people cannot use other type of webserver and you can mad at them if they using it lol. It's just everyone personal preference. Just saying.

    I'm not the one going on every Apache related thread and saying "use nginx it's better".

    Reminds me of that movie Idiocracy.

    Brawndo, it's got what plants crave, it's got electrolytes.

    Thanked by 1jar
  • jarjar Patron Provider, Top Host, Veteran

    @sman said:
    Reminds me of that movie Idiocracy.

    Haha, me and the wife's favorite of all time. I'm positive that it's a prophecy.

  • @sman said:

    Okay, your win sir. :D

  • rmlhhdrmlhhd Member
    edited November 2013

    @plumberg said:
    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.

    I would highly recommend installing Debian 7, Nginx, PHP5 (DotDeb), PHP5-FPM. Enable fastcache and get the Nginx Helper plugin in Wordpress to purge cache.

    I have a 128MB VPS running this and it can handle 10K visitors.

  • plumbergplumberg Veteran, Megathread Squad

    @rmlhhd said:
    I have a 128MB VPS running this and it can handle 10K visitors.

    I tried it with Lighttpd. It was easy setup based on the link shared by @nocom. Can you share a step-by-step setup link (I know it cannot be 100% foolproof)? I do not mind experimenting with a couple of options and my own comfort level... So far, I do not feel daunted with lighttpd.

  • @plumberg said:
    I tried it with Lighttpd. It was easy setup based on the link shared by nocom. Can you share a step-by-step setup link (I know it cannot be 100% foolproof)? I do not mind experimenting with a couple of options and my own comfort level... So far, I do not feel daunted with lighttpd.

    I usually just set it up myself. I'll send you a link in a bit. I need to make it first.

  • plumbergplumberg Veteran, Megathread Squad

    @rmlhhd said:

    Thanks, will wait for the link and try.

  • plumbergplumberg Veteran, Megathread Squad

    Will try in some time and let you know. Thanks

  • jarland said:

    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 ;)

    What??? I have run sites that get thousands of uniques a month on 256mb RAM VPS. A demo site will happily run on such a VPS without any trouble at all. And webmin? Webmin takes just 19MB RAM!

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

    @Abdussamad said:
    What??? I have run sites that get thousands of uniques a month on 256mb RAM VPS. A demo site will happily run on such a VPS without any trouble at all. And webmin? Webmin takes just 19MB RAM!

    Why in the world would you waste 7% of your memory on something that you shouldn't even have to use once it's configured? Also, web servers DO scale and require more memory as they serve more clients, unless you heavily use varnish and that eats your memory too. Doesn't matter what web server, the more clients hit it the more it ramps up resource usage. Yes you can get thousands of visitors on 256mb but it depends a lot on the actual content that you're serving, and a hell of a lot on your robots.txt. I'll bet you also have some cloudflare in there unless your content is very minimal. Some websites absolutely cannot do that. Depends on the purpose. I focus on the rule and not the exception. I know what the average Wordpress user does and they shouldn't be wasting memory on a 256mb VPS.

  • jarland said: Why in the world would you waste 7% of your memory on something that you shouldn't even have to use once it's configured? Also, web servers DO scale and require more memory as they serve more clients, unless you heavily use varnish and that eats your memory too. Doesn't matter what web server, the more clients hit it the more it ramps up resource usage. Yes you can get thousands of visitors on 256mb but it depends a lot on the actual content that you're serving. I'll bet you also have some cloudflare in there unless your content is very minimal. Some websites absolutely cannot do that. Depends on the purpose. I focus on the rule and not the exception. I know what the average Wordpress user does and they shouldn't be wasting memory on a 256mb VPS.

    Nope no cloud flare and apache as the web server. No caching plugins even. Even static files uploaded to WP were served by php (ms-files.php). And yeah RAM usage goes up as you get visitors but as I said thousands of uniques a month in 256MB openvz on a centos 6 host node is entirely doable. Even with xen or kvm it is doable. You don't know how to optimize apache so you are saying what you are saying.

    As far as webmin goes if it's that big a deal you can always shut it down after the initial configuration. But if you can't spare 19MB then you have bigger problems.

  • jarjar Patron Provider, Top Host, Veteran

    Lol that's funny. If you don't have wordpress caching installed you're trolling if at any point you talk about optimization. Unnecessary SQL queries are stupid with high traffic and low memory. Your description is incompatible. You either don't have content or you don't get 100 IPs ever hitting the site at once, and when that does happen your site goes down and you just don't know it.

  • Run a http://www.blitz.io against your site, and lets see what results you get.

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

    @connercg said:
    Run a http://www.blitz.io against your site, and lets see what results you get.

    ^ This. If you're making SQL queries for every visitor and bragging about how you sustain thousands of visitors on a LAMP install where you're wasting memory, don't tell me I don't know how to do my day job. Just because you haven't been hit by the right bots yet who don't respect your robots.txt, or you have and didn't notice that visitors were being rejected, doesn't mean your hobby project makes you an expert. Optimization for Wordpress STARTS with Wordpress and ENDS with Apache. You don't have to be anyone special to get hit with crazy traffic, you just have to run a Wordpress and eventually show up on the radar for malicious bots. Then you'll sit there and ban full subnets all day (and/or changing your htaccess rules to fit whatever UA string they're using this month) until you get tired of it and learn how to actually optimize a website. Seen it, done it, over and over again.

    I don't mean to sound insulting but "You don't know how to optimize apache" is a pretty inaccurate thing to say to the guy who has practically dedicated his life at the moment to doing exactly that one thing.

    Thanked by 1Zen
  • jarland said: Lol that's funny. If you don't have wordpress caching installed you're trolling if at any point you talk about optimization. Unnecessary SQL queries are stupid with high traffic and low memory. Your description is incompatible. You either don't have content or you don't get 100 IPs ever hitting the site at once, and when that does happen your site goes down and you just don't know it.

    A few thousand uniques a month is not high traffic and not the level at which you would get 100 simultaneous connections. At this traffic level you would get maybe 10 to 20 simultaneous connections at most.

    And doing caching in PHP is a silly idea anyway. It is for those people who don't have root access to their server. If you have access then you should use something like nginx helper plugin that merely leverages Nginx's caching. But again it is not required at the traffic level I am talking about.

  • connercg said: Run a http://www.blitz.io against your site, and lets see what results you get.

    To what end? I know I sustained the traffic load I mentioned for around a year and I don't have that VPS anymore.

  • jarland said: Just because you haven't been hit by the right bots yet who don't respect your robots.txt, or you have and didn't notice that visitors were being rejected, doesn't mean your hobby project makes you an expert. Optimization for Wordpress STARTS with Wordpress and ENDS with Apache. You don't have to be anyone special to get hit with crazy traffic, you just have to run a Wordpress and eventually show up on the radar for malicious bots. Then you'll sit there and ban full subnets all day (and/or changing your htaccess rules to fit whatever UA string they're using this month) until you get tired of it and learn how to actually optimize a website. Seen it, done it, over and over again.

    So you are taking my comment about a few thousand uniques a month and twisting it into surviving a veritable DoS? I never claimed that I could do that with a small VPS and neither is that a requirement for 99% of sites. Now it is you who is talking about the exception rather than the rule.

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

    Abdussamad said: A few thousand uniques a month is not high traffic and not the level at which you would get 100 simultaneous connections. At this traffic level you would get maybe 10 to 20 simultaneous connections at most.

    Like I said, you don't have to be somebody special. Just wait until the bots that you can't control bring down your site. It may not be today, tomorrow, or next month, but they'll kick you down fast and you'll see that your website doesn't scale well and you'll need every resource available just to work to mitigate it when it happens. There is no single rule that will prevent this. The way you prepare for it is by minimizing the impact of traffic on your site, not by dealing with it afterward. Without a caching plugin for Wordpress, you haven't even completed the first step to preparing for this. Apache optimization will not help you. I literally see this happen every single day.

    Abdussamad said: And doing caching in PHP is a silly idea anyway. It is for those people who don't have root access to their server. If you have access then you should use something like nginx helper plugin that merely leverages Nginx's caching. But again it is not required at the traffic level I am talking about.

    What? How in the world is caching static content a silly idea? Most especially, I'm talking about caching content to avoid a MySQL query for EVERY visitor. That's the first rule of website optimization and it's the first thing that will bring you down with something even as small as Google and Bing hitting you at the same time. Every optimization that you don't make now is a problem later. If you go 6 years without seeing the problem, congratulations, but it's still coming.

    A web server should be serving content, not creating it for every visitor. Everyone thinks they're special, like the guy who says "Well I don't advertise my server so no one is going to brute force my SSH on port 22." We all know that's a load of crap. Maybe his IP isn't in a popular subnet, maybe he won't see it happen until next year, but it will happen. How about the guy who says "I don't need to update my Joomla, it's not a popular site" and gets defaced 4 years later? All you need is to be on the internet and you are a target. The question is, do you want to do the work now or do you want to react later?

  • jarland said: Just wait until the bots that you can't control bring down your site. It may not be today, tomorrow, or next month, but they'll kick you down fast and you'll see that your website doesn't scale well and you'll need every resource available just to work to mitigate it when it happens.

    The sites I am talking about have been up since 2006. Yet to face that problem and it has nothing to do with what I said. Again you are putting in scenarios that 99.9% of people never face.

    jarland said: What? How in the world is caching static content a silly idea?

    That is not what I wrote. You've quoted me but ignored what I wrote. I said caching in PHP was a silly idea. Better to do the caching in C code i.e. at the web server level.

  • jarjar Patron Provider, Top Host, Veteran

    It's far more than 0.01% dealing with these things and people should prepare basic and simple optimizations beforehand rather than roll the dice and see if they're one of the fortunate ones who goes unnoticed or not. As far as caching goes, I said content that created SQL queries should be cached so each visitor doesn't generate an SQL query and I stand by that. No matter the traffic level. Opting to make your website slower than it has to be is hardly a value worth clinging to.

  • jarland said: It's far more than 0.01%

    Well not in my experience.

    jarland said: As far as caching goes, I said content that created SQL queries should be cached so each visitor doesn't generate an SQL query and I stand by that.

    Great! The caching I am talking about and which is done at the web server level also saves SQL queries. But again not required for the traffic level I am talking about.

    jarland said: No matter the traffic level. Opting to make your website slower than it has to be is hardly a value worth clinging to.

    Traffic level definitely determines the level of optimization you do. It takes time, effort and money to optimize so you only do it if you have to. And no one is opting to make their site slower. We are opting out of making it faster because making it faster costs the aforementioned time, effort and money.

  • jarjar Patron Provider, Top Host, Veteran

    @Zen said:
    Whether optimizations are required or not is irrelevant, for an extra 5 minutes of your time you can increase user enjoyment tons by decreasing load speeds by up to 2-5 times, which the advantage of knowing that if and when your site does get hammered it might actually have the chance of withstanding it.

    If you're any competent, it really doesn't require that much time/effort and certainly not any money.

    Right, and for those who like to keep up with realities, Google did some research on it and it was actually quite interesting.

    http://googleresearch.blogspot.com/2009/06/speed-matters.html

    After all, how many of us are making web pages with the idea that the viewer doesn't matter? Otherwise I believe the old trend of keeping a journal to be a far more productive use of your time.

  • AbdussamadAbdussamad Member
    edited November 2013

    Zen said:

    Whether optimizations are required or not is irrelevant, for an extra 5 minutes of your time you can increase user enjoyment tons by decreasing load speeds by up to 2-5 times, which the advantage of knowing that if and when your site does get hammered it might actually have the chance of withstanding it.

    What optimization are you talking about? Please be specific. I always optimize apache and mysql. But I don't like WP caching plugins like super cache and total cache for my low to mid traffic sites because they have downsides to them:

    • Sometimes stale content is served. For example when you change sidebar widgets, update a post, or a new comment is posted it doesn't get reflected on the site right away.

    • They interfere with other plugins notably ecommerce plugins like woocommerce

    • Super cache does not work with all permalinks last I checked and this has SEO implications. It works by replicating a directory structure and placing static index.html files so if you have permalinks like example.com/blog/whatever/ it is ok but if your permalink structure is different like example.com/blog/page.html then you can't use super cache without adding a trailing slash to your links. This is a bad thing for SEO. For legacy reasons I have such a permalink structure on one of my sites.

    Fixing all the above does require developer time and money or the alternative which is to put up with the downsides. It is easy for a host to say that all users should install caching plugins. This reduces resource usage and saves the host money. But it is not always in the interest of site owners and users.

    And FYI see my site's results:

    http://tools.pingdom.com/fpt/#!/bNbM2/abdussamad.com

  • Zen said: You can skip web* application side entirely, nginx, pagespeed, varnish, CDN every asset, done.

    Yes and that is why I said on page 1 that caching in PHP is a bad idea and it is better to cache at the web server level:

    Abdussamad said: And doing caching in PHP is a silly idea anyway. It is for those people who don't have root access to their server. If you have access then you should use something like nginx helper plugin that merely leverages Nginx's caching. But again it is not required at the traffic level I am talking about.

    But you still have some of the downsides I mentioned above. Stale content being served for instance.

    Also another thing is that caching might even be a waste of resources. For example say you only have a few thousand visitors per month to an entire site and for compatibility reasons you can only cache a web page for a maximum of 4 hours. WP nonces for example are only valid for 24 hours. You might find that a lot of web pages just don't get visitors that often so the cache is always stale and a new dynamic page has to be generated every time.

    But I have to ask Zen what criteria you use to judge competence? I have been able to squeeze more performance out of a low end VPS than Jarland says is even possible yet you call me incompetent. Is competence being able to install 1 click WP caching plugins? Is that some great skill to be proud of?

  • Usually i'm just enabling internal wordpress caching. Other than that just using tweaked web server configuration.

  • plumbergplumberg Veteran, Megathread Squad

    Thank you so much for all your responses. For my current project, i have setup Debian minimal 7 (32 bit) with lighttpd and wordpress.

    What is the best method of backing up the lighttpd and wordpress so that I can restore the same should something go wrong with the vps container?

Sign In or Register to comment.