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-25, 05:30:33

Author Topic: Mengetahui microcache berjalan  (Read 4739 times)

0 Members and 1 Guest are viewing this topic.

Offline redpages

  • Master
  • **
  • Posts: 372
  • Karma: +0/-0
    • View Profile
Mengetahui microcache berjalan
« on: 2017-04-02, 07:31:24 »
Hallo masta,

tanya neh, VPS saya menggunakan kloxo mr 7, pure nginx dan php70. VPS digunakan untuk wordpress multisite.
Apakah kalau menggunakan nginx secara otomatis sudah terpasang microcache? jika belum bagaimana cara pasang dan melihat informasinya kalau cache tersebut ON?

Setahu saya microcache kan cache untuk server, kira2 cache apa yg cocok untuk menjadi cache PHP dan web?

Terima kasih,

Sysinfo:
Quote
A. Control Panel:
   - Kloxo-MR: 7.0.0.c-2017040102
   - Web: hiawatha-10.5.0-f.2.mr.el6.x86_64
   - PHP: php56s-5.6.30-2.ius.centos6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.8 (Final) x86_64
   - Hostname: sg30.m2net.asia
C. Services:
   1. MySQL: MariaDB-server-10.0.30-1.el6.x86_64
   2. PHP:
      - Installed:
        - Branch: php70u-cli-7.0.17-1.ius.centos6.x86_64
      - Used: --PHP Branch--
      - Multiple: disable
   3. Web Used: nginx
     - Hiawatha: hiawatha-10.5.0-f.2.mr.el6.x86_64
     - Lighttpd: lighttpd-1.4.45-1.el6.x86_64
     - Nginx: nginx-1.11.12-1.el6.ngx.x86_64
     - Apache: httpd24u-2.4.25-3.ius.centos6.x86_64
       - PHP Type:
       - Secondary PHP: off
   4. WebCache: none
     - ATS: --uninstalled--
     - Squid: --uninstalled--
     - Varnish: --uninstalled--
   5. Dns: nsd
     - Bind: bind-9.9.9-1.mr.el6.x86_64
     - DJBDns: djbdns-1.05-17.4.mr.el6.x86_64
     - NSD: nsd-4.1.14-1.el6.x86_64
     - PowerDNS: pdns-4.0.3-1.el6.MIND.x86_64
     - Yadifa: yadifa-2.2.3-1.mr.el6.x86_64
   6. Mail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
      - pop3/imap4: courier-imap-toaster-4.1.2-1.3.20.mr.el6.x86_64
      - smtp: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
      - spam: bogofilter-1.2.4-1.el6.x86_64
   7. Stats: awstats
D. Memory:
             total       used       free     shared    buffers     cached
Mem:          2048       1531        516         81          0       1076
-/+ buffers/cache:        455       1592
Swap:         1024        176        847
E. Disk Space:
Filesystem         Size  Used Avail Use% Mounted on
/dev/ploop50968p1   99G  5.9G   88G   7% /

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Mengetahui microcache berjalan
« Reply #1 on: 2017-04-02, 08:21:32 »
Gunakan saja microcache di nginx (cari 'web features' untuk domain terkait).

Untuk cache silahkan install 'multiple php' melalui 'webserver configure'. Setelah terinstall semua, pilih 'php56m' untuk 'php used'.

Setelah itu, melalui 'php module status', enable 'apcu' dan 'memcached' untuk phpXYm terkait.

Setelah itu, melalui ssh jalankan 'yum install memcached -y; chkconfig memcached on; sh /script/restart-web'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline redpages

  • Master
  • **
  • Posts: 372
  • Karma: +0/-0
    • View Profile
Re: Mengetahui microcache berjalan
« Reply #2 on: 2017-04-02, 10:01:07 »
maaf mas MR. kenapa harus install multiple PHP. karena saya cukup hanya membutuhkan 1 version saja, PHP70u.

Mohon pencerahannya, terima kasih

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Mengetahui microcache berjalan
« Reply #3 on: 2017-04-02, 11:22:22 »
Menginstall tidak berarti 'multiple php' akan aktif. Agar aktif, harus click 'enable multiple php' di 'admin > server > localhost > php configure'. Menginstall 'multiple php' adalah menginstall php yang 'mendukung' untuk 'multiple php'.

Berbeda dengan php branch (diinstall melalui 'yum install'), multiple php diinstall secara khusus. Pada 'multiple php' maka semua module diinstall tapi hanya saja module tertentu dibuat disable (di-enable melalui 'php module status').

Demikian.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline redpages

  • Master
  • **
  • Posts: 372
  • Karma: +0/-0
    • View Profile
Re: Mengetahui microcache berjalan
« Reply #4 on: 2017-04-02, 19:47:51 »
sudah saya lakukan tahapan diatas.
tapi setelah saya cek di phpinfo, memcachednya koq ga ada keterangannya ya.
apa karena yg enabled tertulis php56 (--> /opt/php56s/etc/php.d/50-memcached_used.ini )
Sementara php branch saya php 70

Offline redpages

  • Master
  • **
  • Posts: 372
  • Karma: +0/-0
    • View Profile
Re: Mengetahui microcache berjalan
« Reply #5 on: 2017-04-02, 20:01:38 »
oiya, maaf. tambahan dikit
Dulu saat saya pakai php53 menggunakan xcache untuk cache php. Apakah XCACHE masih ampuh dipasangkan dengan PHP70? karena saya lihat di php module status sedia xcache  (    /opt/php56s/etc/php.d/40-xcache.nonini )

Terima kasih pencerahannya

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Mengetahui microcache berjalan
« Reply #6 on: 2017-04-02, 20:19:49 »
Sebaiknya pakai apcu saya. Untuk xcache, dikhawatirkan ada masalah dengan security.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
Re: Mengetahui microcache berjalan
« Reply #7 on: 2017-04-03, 10:54:38 »
I tried to understand the discussion here using Google translate, didn't get all i think :)

But keep in mind that APCu is just a user object caching with PHP. So for opcode caching, use it together with OPcache in PHP 7.0. I'm pretty sure APCu alone won't do the opcode caching.
Kloxo-MR!

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Mengetahui microcache berjalan
« Reply #8 on: 2017-04-03, 13:15:38 »
Better combination are apcu (for php opcode), memcached (for database cache), application cache (like hypercache in wordpress; for page cache) and pagespeed (optimize delivery from server to visitor).
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
Re: Mengetahui microcache berjalan
« Reply #9 on: 2017-04-03, 15:19:46 »
@Mustafa, APCu is NOT opcode cache!  Ref https://github.com/krakjoe/apcu
"APCu is APC stripped of opcode caching."  APCu is object/user cache that PHP apps can benefit from.
So APCU != APC and IIRC APC development has halted so it should not be used!

I've read somewhere that those WP caching plugins (W3 total cache, Wp super cache bla bla) are not *always* the best to go with as they have varying quality, security issues and can mess up WP as well.


Found it:  https://blogg.syse.no/caching-wordpress-mod_disk_cache/. Use google translate to read that page.

without knowing 100%, i'd assume the same goes for Nginx (without proxy) with it's micro caching since it's also a disk cache based which are then buffered by Linux kernel into memory.








Better combination are apcu (for php opcode), memcached (for database cache), application cache (like hypercache in wordpress; for page cache) and pagespeed (optimize delivery from server to visitor).
« Last Edit: 2017-04-03, 15:22:35 by fossxplorer »
Kloxo-MR!

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix
Click Here

Page created in 0.033 seconds with 19 queries.

web stats analysis