Skip to main content
  1. Posts/

Enable LiteSpeed Cache Engine

1 min
cpanel litespeed cpanel
Table of Contents

Ketika menginstall dan mengaktifkan plugin Litespeed Cache di Wordpress, Response Headers tidak menampikan output litespeed-cache: hit yang artinya Litespeed Cache tidak berfungsi.

Cara lain untuk mengetahui Litespeed Cache berfungsi yaitu dengan cara cek folder lscache yang ada pada path /home/user/lscache jika menggunakan cPanel. Lalu untuk panel Plesk dapat Anda temukan pada path /var/www/vhosts/<domain_name>/lscache

Command Line Script
#

Cara ini dapat Anda gunakan pada Panel Plesk dan cPanel

bash <(curl https://www.litespeedtech.com/packages/lscache/set_cache_root_policy.sh)

Set Virtual-Host-Level Cache Root for all Virtual Hosts Manually
#

Cpanel

nano /etc/apache2/conf.d/userdata/lscache_vhosts.conf

Edit file seperti berikut

<IfModule Litespeed>
CacheRoot lscache
</IfModule>

Selanjutnya rebuildhttpdconf agar perubahan dapat diterapkan pada semua user cpanel.

/scripts/rebuildhttpdconf

Restart service

/scripts/restartsrv_httpd

Referensi:

LSCache Setup

Related

Error 500 in Python Applications using LiteSpeed and CloudLinux
1 min
cpanel python cpanel cloudlinux litespeed
Cara Transfer Akun dengan API cPanel
2 mins
cpanel cpanel
Fixing Errors in cPanel RoundCube
1 min
cpanel cpanel roundcube
Cara Mengedit DNS Zone di cPanel
2 mins
cpanel cpanel
How to Create Custom Hooks in cPanel
3 mins
cpanel cpanel
Error rebuildhttpdconf di cPanel
1 min
cpanel cpanel