Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-27, 18:44:39

Author Topic: nginx with fast cache  (Read 10428 times)

0 Members and 1 Guest are viewing this topic.

Offline marcus5914

  • Valuable Member
  • *
  • Posts: 59
  • Karma: +0/-0
    • View Profile
nginx with fast cache
« on: 2013-08-15, 20:37:57 »
hi . i have wordpress site and i am using nginx with php-fpm . i want to install fast cache module . please tell me how to do that,.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: nginx with fast cache
« Reply #1 on: 2013-08-15, 20:54:19 »
You mean cache plugin on wordpress or cache enable on nginx?.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline marcus5914

  • Valuable Member
  • *
  • Posts: 59
  • Karma: +0/-0
    • View Profile
Re: nginx with fast cache
« Reply #2 on: 2013-08-15, 21:18:40 »
Quote from: "MRatWork"
You mean cache plugin on wordpress or cache enable on nginx?.


i want to install  fastcgi_cache_purge module . so i can usenginx-helper plugin in my wordpress


PS: i already tried this one
http://rtcamp.com/wordpress-nginx/tutor ... tal-cache/

but i got duplication location error .

System info:

Quote
A. Kloxo-MR: 6.5.0.f-2013081402

B. OS: CentOS release 5.9 (Final) i686

C. Apps:
   1. MySQL: mysql-5.0.95-5.el5_9
   2. PHP: php53u-5.3.27-1.ius.el5
   3. Httpd: --uninstalled--
   4. Lighttpd: --uninstalled--
   5. Nginx: nginx-1.5.2-1.el5
   6. Qmail: qmail-toaster-1.03-1.3.27.mr.el5
      - with: courier-imap-toaster-4.1.2-1.3.14.mr.el5
   7. Dns: bind-9.9.3-5.P2.el5

D. Php-type (for Httpd/proxy): php-fpm_event

E. Memory:
                total       used       free     shared    buffers     cached
   Mem:          2536        525       2010          0          0          0
   -/+ buffers/cache:        525       2010
   Swap:            0          0          0
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: nginx with fast cache
« Reply #3 on: 2013-08-15, 22:03:16 »
fastcgi_cache_purge not work. Alternatively use 'microcache' for nginx.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline marcus5914

  • Valuable Member
  • *
  • Posts: 59
  • Karma: +0/-0
    • View Profile
Re: nginx with fast cache
« Reply #4 on: 2013-08-15, 22:12:13 »
Quote from: "MRatWork"
fastcgi_cache_purge not work. Alternatively use 'microcache' for nginx.

how to install microcache . or anything best for wordpress ? or should i changed to anything else ?
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: nginx with fast cache
« Reply #5 on: 2013-08-15, 22:26:59 »
For wordpress, use hypercache.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline marcus5914

  • Valuable Member
  • *
  • Posts: 59
  • Karma: +0/-0
    • View Profile
Re: nginx with fast cache
« Reply #6 on: 2013-08-15, 22:36:42 »
Quote from: "MRatWork"
For wordpress, use hypercache.

does it need anything special or just a plugin .
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline zenkul

  • Global Moderator
  • Master
  • *****
  • Posts: 383
  • Karma: +3/-0
    • View Profile
    • home & decor
Re: nginx with fast cache
« Reply #7 on: 2013-08-15, 22:40:07 »
« Last Edit: 1970-01-01, 01:00:00 by Guest »
easy, secure and speed up web panel ===> Kloxo-MR

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: nginx with fast cache
« Reply #8 on: 2013-08-15, 22:56:49 »
Beside using cache management on wordpress or enable microcache in nginx, better using xcache on php.

Depend on your php branch (see inside 'webserver configs' in panel), you can install xcache like 'yum install php53u-xcache' (when using php53u as php branch).
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline marcus5914

  • Valuable Member
  • *
  • Posts: 59
  • Karma: +0/-0
    • View Profile
Re: nginx with fast cache
« Reply #9 on: 2013-08-15, 22:57:37 »
Quote from: "zenkul"
for microcache reference http://www.howtoforge.com/why-you-shoul ... crocaching

tell me how to install microcache
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: nginx with fast cache
« Reply #10 on: 2013-08-15, 23:02:50 »
If using nginx alone (not nginx-proxy), follow:

1. copy /home/nginx/conf/globals/php-fpm.conf to /home/nginx/conf/globals/custom.php-fpm.conf
2. modified inside custom.php-fpm.conf:
from:
Code: [Select]
...
    ### MR -- just enough remove # below for enable nginx cache
    #fastcgi_cache fcache;
    fastcgi_cache_valid 200 1h;
    fastcgi_cache_valid 301 1h;
    fastcgi_cache_valid 302 1h;
    fastcgi_cache_valid any 1m;
...
to:
Code: [Select]
...
    ### MR -- just enough remove # below for enable nginx cache
    fastcgi_cache fcache;
    #fastcgi_cache_valid 200 1h;
    #fastcgi_cache_valid 301 1h;
    #fastcgi_cache_valid 302 1h;
    #fastcgi_cache_valid any 1m;
    ## for microcache
    fastcgi_cache_valid 200 10s;
    fastcgi_cache_use_stale updating;
    fastcgi_max_temp_file_size 1M;
...
3. run 'sh /script/fixweb; sh /script/restart-web'.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline marcus5914

  • Valuable Member
  • *
  • Posts: 59
  • Karma: +0/-0
    • View Profile
Re: nginx with fast cache
« Reply #11 on: 2013-08-15, 23:14:47 »
Quote from: "MRatWork"
If using nginx alone (not nginx-proxy), follow:

1. copy /home/nginx/conf/globals/php-fpm.conf to /home/nginx/conf/globals/custom.php-fpm.conf
2. modified inside custom.php-fpm.conf:
from:
Code: [Select]
...
    ### MR -- just enough remove # below for enable nginx cache
    #fastcgi_cache fcache;
    fastcgi_cache_valid 200 1h;
    fastcgi_cache_valid 301 1h;
    fastcgi_cache_valid 302 1h;
    fastcgi_cache_valid any 1m;
...
to:
Code: [Select]
...
    ### MR -- just enough remove # below for enable nginx cache
    fastcgi_cache fcache;
    #fastcgi_cache_valid 200 1h;
    #fastcgi_cache_valid 301 1h;
    #fastcgi_cache_valid 302 1h;
    #fastcgi_cache_valid any 1m;
    ## for microcache
    fastcgi_cache_valid 200 10s;
    fastcgi_cache_use_stale updating;
    fastcgi_max_temp_file_size 1M;
...
3. run 'sh /script/fixweb; sh /script/restart-web'.


"for microcache"  . so should i install microcache .?
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: nginx with fast cache
« Reply #12 on: 2013-08-15, 23:17:15 »
Microcache just 'trick' name. Named as 'microcache' because caching with short time (10 seconds) where usually 1 hour or more.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline marcus5914

  • Valuable Member
  • *
  • Posts: 59
  • Karma: +0/-0
    • View Profile
Re: nginx with fast cache
« Reply #13 on: 2013-08-15, 23:19:53 »
Quote from: "MRatWork"
Microcache just 'trick' name. Named as 'microcache' because caching with short time (10 seconds) where usually 1 hour or more.

its just went over my head. but i think i don't need to install it . by the way how to check the fastcgi cache is working ?
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: nginx with fast cache
« Reply #14 on: 2013-08-15, 23:22:54 »
Nginx cache save inside /var/cache/nginx
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine
Click Here

Page created in 0.051 seconds with 19 queries.

web stats analysis