Learn about Centmin Mod LEMP Stack today
Register Now

Wordpress Fastest WordPress setup

Discussion in 'Blogs & CMS usage' started by top, Jun 3, 2017.

  1. top

    top New Member

    4
    1
    3
    Jun 2, 2017
    Ratings:
    +1
    Local Time:
    1:02 AM
    I know Centmin Mod has some options to install WP with a caching plugin and pagespeed, but I'm sure there are faster setups. I'm trying to figure out what are my options for CentminMod + WordPress, which one is the fastest one?

    Is this stack possible to do with CentminMod?

    NGINX + Varnish + Memcached + MariaDB + PHP7 + Redis + PHP-FPM

    I'm somewhat of a beginner, so I'm not sure if Memcached/Redis/Varnish go hand-in-hand.

    I'd love to read some opinions on the fastest WP setup.
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    9:02 AM
    Nginx 1.13.x
    MariaDB 5.5
    Centmin Mod 123.09beta01's centmin.sh menu option 22 is wordpress auto installer + nginx vhost setup. Centmin Mod 123.09beta01 is a lot leaner in terms of default wp plugins installed. If you know your way around shell bash scripting the centmin.sh routine is in inc/wpsetup.inc
    Also read Wordpress Nginx Auto Installer (WP Super Cache) which is more outline for 123.08stable which had much more wp plugins installed by default than 123.09beta01.

    123.09beta01 has a new various WPPLUGINS_ALL='n' to disable all those extra wp plugins 123.08stable installs by default due to user feedback and request. If you enable WPPLUGINS_ALL='y' in persistent config file /etc/centminmod/custom_config.inc, you enable the plugins listed at centminmod/wpsetup.inc at 15f1b75657c3a4a2b90aa02d70ee8be879c20fc5 · centminmod/centminmod · GitHub

    Both do rate limiting of certain requests to xmlrpc.php and wp-login.php and optional password protection for wp-login.php in 123.09beta01. In 123.08stable password protected wp-login.php is forced

    And for caching see https://community.centminmod.com/threads/wordpress-caching-redis-or-fastcgi.10758/#post-46242
     
    • Like Like x 1
  3. top

    top New Member

    4
    1
    3
    Jun 2, 2017
    Ratings:
    +1
    Local Time:
    1:02 AM
  4. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    9:02 AM
    Nginx 1.13.x
    MariaDB 5.5
    if you use 123.09beta01's centmin.sh menu option 22 and select redis cache option, centmin mod will automatically install redis server as per 1st post outlined at https://community.centminmod.com/threads/how-to-install-redis-server-on-centmin-mod-lemp-stack.4546/

    or you can manually install it as 1st post outlined at https://community.centminmod.com/threads/how-to-install-redis-server-on-centmin-mod-lemp-stack.4546/

    As to varnish that is solely up to you to install and config so you need to know how to install and configure Varnish Cache i.e. https://community.centminmod.com/threads/varnish-cache-5-1-install.10976/
     
    • Like Like x 1
  5. top

    top New Member

    4
    1
    3
    Jun 2, 2017
    Ratings:
    +1
    Local Time:
    1:02 AM
    Is there any additional config I need to do if I host more than one WP site (not multisite) with Redis?

    I've had quite a lot of trouble before when running more than 1 site with Redis. The domains showed the same content.
     
  6. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    9:02 AM
    Nginx 1.13.x
    MariaDB 5.5
    have to clarify what you mean by redis usage from https://community.centminmod.com/threads/how-to-install-redis-server-on-centmin-mod-lemp-stack.4546/ there's 2 ways to use redis server

    1. via redis object wordpress plugin cache which requires unique defined redis database number from 0-15 set in wp-config.php - recommended not to install redis object plugin as you may have problems with admin backend settings changes not taking affect immediately i.e. redis database = 7
    Code (Text):
    define('WP_REDIS_DATABASE', 7);
    

    2. redis cache at nginx level which shouldn't have problems as the the cache set key used is includes the $host and $request_uri to differentiate cache entries
    Code (Text):
    set $key "nginx-cache:$scheme$request_method$host$request_uri";