Get the most out of your Centmin Mod LEMP stack
Become a Member

Wordpress Optimized Multi WP wannabe

Discussion in 'Blogs & CMS usage' started by inthecloudblog, Jun 17, 2016.

  1. inthecloudblog

    inthecloudblog Active Member

    199
    36
    28
    Jan 26, 2016
    Ratings:
    +83
    Local Time:
    12:55 AM
    1.4.6
    Hi guys a bit of background.
    I have a Box has 12 threads, 32 gb of ram and 2 disks ( hdd's) of 3tb each.
    Connectivity is 250mbits and I have an average latency of 180 msecs.


    I make use of this server for another purposes and have Proxmox installed and own 8 IP's.

    I want to deploy like 10 WP sites so I'm looking for a multi wp to give ftp access to my friends. In general the wp's have very low traffic at the time being, but particularly one needs some speed boost so I considered keycdn.

    I need up to now deploy multi wp+ftp to each and the ability to enhance keycdn to some.

    I also want to make use of like 8GB or so to do some caching .
    I've seen this but it's all done manually which I do not want to
    WordPress + Super Cache plugin for Centmin Mod Nginx | wp1.centmincache.com
    Also is this the best WP caching system? Would Redis be any good?

    It would be nice to have to be able to use Cloudflare also, is there any functionality that is already coded into centminmod?


    Just a side note : I want to squeeze this box and I'm not intending to make profit.

    Which steps should I follow and what do you recommend?
     
  2. eva2000

    eva2000 Administrator Staff Member

    54,856
    12,238
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,809
    Local Time:
    1:55 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Unfortunately centminmod WordPress auto installer doesn't support WordPress multi-site set-ups so need to manually do it and you would be on your own as I have never used WordPress multi-site myself

    Regarding shared hosting, see FAQ item 2 covers users accounts you can't lock site accounts down to user level like cpanel/WHM as there is no 100% user isolation between site accounts on Centmin Mod.

    Pure-ftpd virtual ftp users only isolates ftp Pure-FTPD Virtual FTP Users but isn't fully jailed like cpanel/WHM as Centmin Mod is not made or setup for shared hosting like cpanel/WHM but more for usage by trusted user (myself/yourself).

    Cloudflare is a reverse prixy of sorts snd supported If you use a reverse proxy in front of Centmin Mod Nginx, you need to setup nginx realip to be passed onto Nginx.

    See Getting Started Guide step 4 and setting correct real ip via nginx module config at Nginx Cloudflare & Incapsula (reverse proxy HttpRealIpModule) - CentminMod.com LEMP Nginx web stack for CentOS.

    If using Centmin Mod 123.09beta01 and newer, there's an added tools/csfcf.sh script to aid in this. Details at:
    You just need to setup a cronjob to run
    Code (Text):
    /usr/local/src/centminmod/tools/csfcf.sh auto

    and ensure your nginx.conf http{} context has the include file /usr/local/nginx/conf/cloudflare.conf and/or your individual nginx vhost's server contexts has the same include file
    Code (Text):
    http {
    map_hash_bucket_size 128;
    map_hash_max_size 2048;
    server_names_hash_bucket_size 128;
    server_names_hash_max_size 2048;
    
    limit_req_zone $binary_remote_addr zone=xwplogin:16m rate=40r/m;
    #limit_conn_zone $binary_remote_addr zone=xwpconlimit:16m;
    
    more_set_headers "Server: nginx centminmod";
    more_set_headers "X-Powered-By: centminmod";
    
    include /usr/local/nginx/conf/cloudflare.conf;
    include /usr/local/nginx/conf/maintenance.conf;
    include /usr/local/nginx/conf/vts_http.conf;
    include /usr/local/nginx/conf/geoip.conf;
    #include /usr/local/nginx/conf/pagespeedadmin.conf;
    include /usr/local/nginx/conf/fastcgi_param_https_map.conf;

    Then restart nginx server via command shortcut
    Code (Text):
    ngxrestart

    or
    Code (Text):
    service nginx restart
     
  3. apidevlab

    apidevlab Member

    91
    33
    18
    Mar 22, 2016
    /dev/null
    Ratings:
    +58
    Local Time:
    3:55 AM
    1.11.1
    5.2.14-122
    Using a WP Multisite setup would also require you to have access to full DNS (imagine that is the case as you have x8 ip's) as for keycdn you could do worse than look at Bunny CDN a PAYG model which is cheaper than KeyCDN and very easy to implement they also offer free Lets Encrypt SSL
     
  4. inthecloudblog

    inthecloudblog Active Member

    199
    36
    28
    Jan 26, 2016
    Ratings:
    +83
    Local Time:
    12:55 AM
    1.4.6
    Appreciate your input guys.
    1. What I want is to have users do what they need to ( upload files in 95% of thr cases) and not request me for any aid.
    2.Does Bunny cdn have any pops either in Brazil or Argentina?
    3. What about caching?
     
  5. apidevlab

    apidevlab Member

    91
    33
    18
    Mar 22, 2016
    /dev/null
    Ratings:
    +58
    Local Time:
    3:55 AM
    1.11.1
    5.2.14-122
    1 - centminmod sets up PureFTP so if you add the required nginx host's you'll be good to go. This assumes you are just using x1 IP you can set them all up on 1 box with 1 IP if you are going to setup x8 boxes you will install centminmod on each VPS and then provide your clients with the relevant login/user/ip details

    2 - Bunny offers x3 worldwide zones these are Europe / America & Asia you can switch each one on/off as required. You can ask them if you have specific requirements.

    3 - Caching... I don't really know about as I only run test/dev boxes sorry
     
  6. inthecloudblog

    inthecloudblog Active Member

    199
    36
    28
    Jan 26, 2016
    Ratings:
    +83
    Local Time:
    12:55 AM
    1.4.6
    Thanks a ton guys.
    I could run actually wp in a single Ip that wouldn't be a problem.
    Concerning pops, Afaik keycdn does havs a pop in SP, Brazil where I could serve my static content /or try serving those with Cloudflare.
    Cloudflare has a Pop in Buenos Aires (1gig of level 3) but it's solely for their premium users.
    Free users have to go to SP Brazil also ( as keycdn)