Want more timely Centmin Mod News Updates?
Become a Member

Wordpress Moving from WP suepr cache to W3 Totel cache

Discussion in 'Blogs & CMS usage' started by Yohan, Sep 24, 2015.

  1. Yohan

    Yohan Member

    68
    3
    8
    Sep 24, 2015
    Ratings:
    +4
    Local Time:
    5:38 AM
    1.9.x
    MariaDB 10
    Hello ,
    I have recently installed my wordpress from centminmod SSH menu

    22). Add Wordpress Nginx vhost + WP Super Cache

    But i change it to WP W3 Totel cache and and active page cache, db cache using (Memcached) , object cache using (Memcached ) , in this situation what i should do on my vhost ?

    Thanks
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,156
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    10:08 AM
    Nginx 1.13.x
    MariaDB 5.5
    Unfortunately, I haven't really used W3 Total Cache with Nginx much but I do know it's not needed as WP Super Cache will end up performing better with Nginx as Nginx already can do the rest of W3 Total Cache offered stuff nearly out of the box where it matters
     
  3. Yohan

    Yohan Member

    68
    3
    8
    Sep 24, 2015
    Ratings:
    +4
    Local Time:
    5:38 AM
    1.9.x
    MariaDB 10
    Actually my main concern about that i having Big DB and too many hits and my mysql server always in rush and i just move to your mod with 2x Intel(R) Xeon(R) CPU L5630 server and 16GB ram .. but its seems i still have very high MySQL posses ... i have 6 WP wanna load in to this server but i just load only one site but i didn't having great performance as i exacted , my average CPU usage is 47.1% but its raise up more than 300% ... how ever im using Feedwordpress plugin and auto blogs this all site are ... so please kindly give me better suggest as i moved your MOD as there many suggest to move your MOD around the internet and finally found you guys !! :) please take look my server status attachment
     

    Attached Files:

  4. eva2000

    eva2000 Administrator Staff Member

    30,156
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    10:08 AM
    Nginx 1.13.x
    MariaDB 5.5
    Centmin Mod is provide as is, so short of scripted related bugs or issues, any further optimisation to the web stack components - nginx, php-fpm, mariadb mysql, csf firewall etc or web app specific configurations are left to the Centmin Mod user to deal with. So I do not provide any free support for such.

    However, Centmin Mod users are free to help each other out and ask questions or give answers on this community forum. My hopes are that this community forum evolves so that more veteran long time Centmin Mod users help new Centmin Mod users out :)

    However, there's many linux tools and scripts that can help you figure out what was causing the load issues and when.

    If you're providing info on this forum, more info might be helpful
    1. What version of Centmin Mod ? .07 stable or .08 beta ? If .08 beta when was it installed and when was last time you updated the .08 beta code (there's constant updates to the code).
    2. What's your VPS/Server hardware specifications ? cpu type ? memory available ? disk space ?
    3. Who's your web host ? Different hosts have different limits for server resource usage and some are more restrictive that others so it could just be their resource usage policy you tripped which may or may not be restrictive. If restrictive, then real solution would be finding a better web host. If not restrictive, then it's finding out what caused high cpu load.
    Tools and commands you will want to read up on and learn for basic system admin tasks and troubleshooting.
    Notes:
    WP Super Cache via centmin.sh has a list of additional steps need to be done at end of setup output to enable and configure WP Super Cache properly. So need to ensure those steps are done as WP Super Cache should effectively allow you to bypass PHP/mysql load usage via static file caching. You can see those steps again at Wordpress Nginx Auto Installer (WP Super Cache)

     
  5. RoldanLT

    RoldanLT Well-Known Member

    3,901
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    8:08 AM
    1.11
    10.2
    From the looks of your stats, you just leave what centminmod install and configure :D.
    You have 16 CPU core but Nginx is only using 4 core right now, you can use even 8 or 16 cpu cores for that to enhance your performance.

    Wordpress+Super-Cache on Nginx is all about Nginx works 80-90% of the time.
    PHP-FPM and Database load only takes on first hit of your article page for guest and the rest are loaded by NGINX alone.

    For PHP-FPM looks like your using stack config also.
    You can further optimize it by using all the CPU cores you have.
    Try this config:
    Code:
    pm = dynamic
    pm.max_children = 32
    pm.start_servers = 8
    pm.min_spare_servers = 4
    pm.max_spare_servers = 16
    pm.max_requests = 1000
    For caching of database objects in memory, I use this plugin: WordPress › MemcacheD Is Your Friend « WordPress Plugins
     
    • Informative Informative x 1
  6. RoldanLT

    RoldanLT Well-Known Member

    3,901
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    8:08 AM
    1.11
    10.2
    • Informative Informative x 1
  7. eva2000

    eva2000 Administrator Staff Member

    30,156
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    10:08 AM
    Nginx 1.13.x
    MariaDB 5.5
    Nice one.. maybe one for centmin.sh menu 22 auto install WP plugin :)
     
    • Agree Agree x 1
  8. RoldanLT

    RoldanLT Well-Known Member

    3,901
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    8:08 AM
    1.11
    10.2
    Yeah very useful to minimize the Database load for large WP site :).
     
    • Like Like x 1
  9. Yohan

    Yohan Member

    68
    3
    8
    Sep 24, 2015
    Ratings:
    +4
    Local Time:
    5:38 AM
    1.9.x
    MariaDB 10
    Thanks for you suggest :) how i add more Nginx workers ?
    Actually after Installing WP super catch its doesn't work well as i see there empty folder making by supercach folder and there no catch file inside and it doesn't actually catching or resting caching file .. all the time load one static HTML for logout users ..

     
  10. eva2000

    eva2000 Administrator Staff Member

    30,156
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    10:08 AM
    Nginx 1.13.x
    MariaDB 5.5
    see instructions at Wordpress Nginx Auto Installer (WP Super Cache) for how to verify if wp cache is working
    nginx scaling past 8 processes isn't that great so optimally around 8 is ideal but trial and error really

    in /usr/local/nginx/conf/nginx.conf ( can be reached via cmd shortcut = nginxconf ) see FAQ item 16
    Code:
    worker_processes 8;
    then restart nginx
     
  11. eva2000

    eva2000 Administrator Staff Member

    30,156
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    10:08 AM
    Nginx 1.13.x
    MariaDB 5.5
  12. Yohan

    Yohan Member

    68
    3
    8
    Sep 24, 2015
    Ratings:
    +4
    Local Time:
    5:38 AM
    1.9.x
    MariaDB 10
    Thanks you :) and i have installed "MemcacheD Is Your Friend" so what you suggest ? i removed W3 Totel cache
     
  13. Yohan

    Yohan Member

    68
    3
    8
    Sep 24, 2015
    Ratings:
    +4
    Local Time:
    5:38 AM
    1.9.x
    MariaDB 10
    And i also make some changes on/etc/my.cnf suggest as per ./mysqlmymonlite.sh mysqltuner .. how i restart mysql server ?
     
  14. eva2000

    eva2000 Administrator Staff Member

    30,156
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    10:08 AM
    Nginx 1.13.x
    MariaDB 5.5
    yeah i'd remove W3 total cache and go back to WP Super Cache
    see FAQ item 16 for command short cuts
    Code:
    mysqlrestart
    or normal command
    Code:
    service mysql restart
     
  15. RoldanLT

    RoldanLT Well-Known Member

    3,901
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    8:08 AM
    1.11
    10.2
  16. eva2000

    eva2000 Administrator Staff Member

    30,156
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    10:08 AM
    Nginx 1.13.x
    MariaDB 5.5
  17. RoldanLT

    RoldanLT Well-Known Member

    3,901
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    8:08 AM
    1.11
    10.2
    I more than familiar with Memcached at the moment :).
    On how to change it to talk via local network, adjust memory.
     
  18. eva2000

    eva2000 Administrator Staff Member

    30,156
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    10:08 AM
    Nginx 1.13.x
    MariaDB 5.5
    with Wordpress, Redis might be better than Memcached especially if you operate a foreign language site and have Wordpress urls that are lengthy as Memcached has a 250 character limit Problem memcached and long urls | Centmin Mod Community that Redis isn't subject to
     
  19. Yohan

    Yohan Member

    68
    3
    8
    Sep 24, 2015
    Ratings:
    +4
    Local Time:
    5:38 AM
    1.9.x
    MariaDB 10
    OK i revert back to WP super cache .. please take look attachment !! in side of wp-content/cache/supercache has directory as per post name of blog but all are empty .. its not rewriting page in side of wp-content/cache/supercache but WP-Cache cache working ... any idea ?
     

    Attached Files:

  20. RoldanLT

    RoldanLT Well-Known Member

    3,901
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    8:08 AM
    1.11
    10.2
    Please post your domain vhost nginx config.