المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : لايت سبيد سيرفر LiteSpeed Server حل مشكلة Object Cache Status Connection Test Failed



Rise Company
03-01-2024, 01:41
لايت سبيد سيرفر LightSpeed Server حل مشكلة Object Cache Status Connection Test Failed
My open litespeed object cache connection test failed
cpanel litespeed install memcache - litespeed and memcache
Can LiteSpeed Memcached be installed on cPanel servers?
memcached or Redis in cpanel with LiteSpeed web server what's best with LiteSpeed ?
How to Install PHP Redis on a cPanel Server?


https://www.rise.company/upload/uploads/170423859842772.png

المشكلة :

يظهر خطا Connection Test Failed سواء كنت مختار Memcached او Redis
حيث ان كلاهما يجب ان يكون مثبت على مستوى السيرفر اما من easyapache او Module Installers

ولكى تعرف memcached انه مثبت ام لا



systemctl status memcached


اذا كان memcached مثبت هيظهر هكذا

https://www.rise.company/upload/uploads/170423859893224.png

اذا كان memcached غير مثبت هيظهر هكذا

https://www.rise.company/upload/uploads/170423859910585.png

--------------------------------------------------
حل المشكلة : تثبيت Memcached
--------------------------------------------------

ادخل الامر التالى على server terminal



yum install memcached


ثم


systemctl start memcached
systemctl enable memcached
systemctl status memcached



ثم اذا كان السيرفر الخاص بك هو كلاود لينكس ادخل على php selector
ثم فعل memcached وهم اثنين مرتبطين مع بعضهم البعض
memcached + memcache


https://www.rise.company/upload/uploads/1704238598683.png


ثم اذا كان السيرفر الخاص بك لايت سبيد LiteSpeed Server
ولديك ووردبريس مثبت عليه بلوجن LiteSpeed Cache
يجب ان تجد ان مل شىء Enabled و Passed

https://www.rise.company/upload/uploads/170423859816951.png

--------------------------------------------------
حل المشكلة : تثبيت Redis
--------------------------------------------------
تثبيت Install Redis + PHP Redis

ادخل هذا الامر فى terminal لتثبيت Redis



yum install epel-release
yum install redis -y


ثم ادخل هذا الامر لتشغيل Redis والتحقق يعمل ام لا



systemctl start redis
systemctl enable redis
systemctl status redis


هيظهر لك نتيجة التثبيت
The latest command should give you a confirmation of that Redis is running.
مثل هذا



redis.service - Redis persistent key-value database
Loaded: loaded (/usr/lib/systemd/system/redis.service; enabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/redis.service.d
└─limit.conf
Active: active (running) since Sat 2020-06-24 15:21:55 GMT +1; 40s ago
Main PID: 2157 (redis-server)
CGroup: /system.slice/redis.service
└─2157 /usr/bin/redis-server 127.0.0.1:6379



It also returns the port being used (here 6379) which you may need for your application.

https://www.rise.company/upload/uploads/170535797678921.png

It also returns the port being used (here 6379) which you may need for your application.

https://www.rise.company/forum/images/imported/2024/01/58.png

Login to WHM and search in the WHM sidebar for Module Installers.
Click on it and then click on Manage PHP PECL.

https://www.rise.company/forum/images/imported/2024/01/59.png

At the next stage, select the PHP version you would like to install Redis For and inside the Module Search type Redis and click on Go

Finally, in the search result click on Install and after a few seconds, it should be completed.

https://www.rise.company/forum/images/imported/2024/01/60.png

That's it, you have now enabled a Redis Cache on your server.

اذهب الان الى تطبيق Litespeed cache ثم فعل Redis وانتبه لا بد من اختيار Port الصحيح
حيث ان port ال Memcached هو 11211 اما Redis هو 6379

https://www.rise.company/upload/uploads/17053584178091.png

المرجع:

https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:lsmcd:install-memcached
https://community.cyberpanel.net/t/my-open-litespeed-object-cache-connection-test-failed/37723/6
https://apps.cpanel.net/threads/memcached-or-redis-in-cpanel-with-litespeed-web-server-whats-best-with-litespeed.685125/
https://my.maxer.com/knowledgebase/239/How-to-enable-the-MemCached-PHP-extensions-using-the-CloudLinux-PHP-Selector.html
----------------
https://docs.cpanel.net/ea4/containers/redis-via-containers/
https://www.milesweb.in/hosting-faqs/install-redis-php-redis-cpanel-server/
https://www.host-stage.net/client-area/knowledgebase/124/How-to-install-Redis-and-PHP-Redis-on-a-cPanel-CentOS-7-Server.html
https://supporthost.in/install-redis-caching-engine-on-cpanel-server/