Litespeed cache on memcached and redis

#1
Q-1)In litespeed cache it shows redis and memcached enabled after new installation
When checked with systemctl status for redis and memcached it shows no such unit? .
In php info memcached and redis are installed but in server no log ?

Q-2)Tried Lsmcd to install but when
Used cd Lsmcd it shows no directory even after unzip ?


Q-3)Lsphp is not getting installed in ubuntu server as it says no such even though repositories were added ?

Error request along with screenshot are attached herewith.
 

Attachments

serpent_driver

Well-Known Member
#2
@Cipher
If you have Memcached or Redis enabled, leave the settings page for cache and request cache settings page again. The connection status is often not displayed immediately when the Object Cache has been activated. You should also check whether you use a Unix socket, because you then have to change the settings for the host and port.
 

serpent_driver

Well-Known Member
#4
Search for memcached.sock on your server and use this code to test if Memcached works.

PHP:
$mc = new Memcached();
$mc->addServer('/path_to/memcached.sock', 0) or die ("Unable to connect");

echo "Server version:<pre>";
print_r($mc->getVersion());
echo "</pre>";

$tmp = new stdClass;
$tmp->str_attr = 'test';
$tmp->int_attr = rand(0,1000);

$mc->set('testkey', $tmp, 10) or die ("Unable to save data in the cache");

$result = $mc->get('testkey');

echo "Data from the cache:<pre>";
var_dump($result);
echo "</pre>";
 

AndreyPopov

Well-Known Member
#5
Q-1)In litespeed cache it shows redis and memcached enabled after new
read carefully - Memcached Extension and Redis Extension are Enabled!
not Memcached or Redis! only Extension for WP LSCache plugin

In php info memcached and redis are installed but in server no log ?
these are php modules, not memcached or redis server


Q-2)Tried Lsmcd to install but when
Used cd Lsmcd it shows no directory even after unzip ?
you not need to install Lsmcd
you need install memcached and/or redis server
https://linuxhint.com/install_memcached_ubuntu/
https://www.linuxcapable.com/how-to-install-redis-on-ubuntu-linux/


Q-3)Lsphp is not getting installed in ubuntu server as it says no such even though repositories were added ?
https://docs.litespeedtech.com/lsws/installation/
https://www.digitalocean.com/commun...-the-openlitespeed-web-server-on-ubuntu-20-04
 
Last edited:

serpent_driver

Well-Known Member
#6
read carefully - Memcached Extension and Redis Extension are Enabled!
not Memcached or Redis! only Extension for WP LSCache plugin
This is a wrong wording. Memcached and Redis are not enabled at the same time. "enabled" means that both object caches are available, but not enabled.

read carefully - Memcached Extension and Redis Extension are Enabled!
you not need to install Lsmcd
you need install memcached and/or redis server
https://linuxhint.com/install_memcached_ubuntu/
https://www.linuxcapable.com/how-to-install-redis-on-ubuntu-linux/
If Memcached or Redis is "available", then there is no need to install additonal object cache. Settings for Memcached or Redis are just not configured. That's why connection test failed.

Btw. Install Wordpress and cache plugin for WP to give correct answers.
 

AndreyPopov

Well-Known Member
#7
"enabled" means that both object caches are available, but not enabled.
read CAREFULLY!!!!!!!!!!!!!!!!! CAREFULLY!!!!!!!!!!!!!!!!! CAREFULLY!!!!!!!!!!!!!!!!!
I write about Extensions.



Memcached and Redis are not enabled at the same time.
may be
This is a wrong wording.
?!?!?!?!!!

because Memcached and Redis can WORK PERFECTLY at the same time.

but object cache for WP LSCache must be chosen from Memcached/Redis



If Memcached or Redis is "available", then there is no need to install additonal object cache.
read CAREFULLY!!!!!!!!!!!!!!!!! CAREFULLY!!!!!!!!!!!!!!!!! CAREFULLY!!!!!!!!!!!!!!!!!
where you find words about "install object cache"
Memcached/Redis not use only for WP object cache
 
Last edited:

serpent_driver

Well-Known Member
#8
As is often the case, you don't know what you're talking about. Please do us all a favor and don't talk about topics you don't have any knowledge about. Also, I'm not talking about your incorrect wording, but about the wording of the description in the cache plugin.
 
Top