lsmcd not showing in phpinfo or litespeed plugin

#1
Hey so I'm running directadmin on my vps. I've installed lsmcd and tested that its working, see below
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.

I've also followed the steps here for DirectAdmin
https://www.litespeedtech.com/suppo...eed_wiki:lsmcd:install-memcached#direct_admin

Since I'm running php 7.3.8, I've edited my extension include to
echo "extension=memcached.so" > /usr/local/php73/lib/php.conf.d/20-memcached.ini

After doing this and restarting OLS, it still doesn't show up in phpinfo.php or the lscache plugin for wordpress.

What steps am I missing??
 
#4
Okay so its enable in the lscache wp plugin but the connection shows failed. How to fix?

Status
Memcached Extension: Enabled
Redis Extension: Disabled
Connection Test: Failed
 

lsqtwrk

Administrator
#7
Hi,

Could you please create a PHP file with code

PHP:
<?php

$mem = new Memcached();
$mem->addServer("127.0.0.1", 11211);
#$mem->addServer('/var/www/memcached.sock',0);
//$mem->connect("127.0.0.1", 11211);

$mem->set('key1', 'This is first value', 60);
$val = $mem->get('key1');
echo "Get key1 value: " . $val ."<br />";

$mem->replace('key1', 'This is replace value', 60);
$val = $mem->get('key1');
echo "Get key1 value: " . $val . "<br />";

$arr = array('aaa', 'bbb', 'ccc', 'ddd');
$mem->set('key2', $arr, 60);
$val2 = $mem->get('key2');
echo "Get key2 value: ";
print_r($val2);
echo "<br />";

$mem->delete('key1');
$val = $mem->get('key1');
echo "Get key1 value: " . $val . "<br />";

$mem->flush();
$val2 = $mem->get('key2');
echo "Get key2 value: ";
print_r($val2);
echo "<br />";

$mem->close();
and access it , see if it connects to memcached ?
 

lsqtwrk

Administrator
#9
This is how it supposed to be


Code:
Get key1 value: This is first value
Get key1 value: This is replace value
Get key2 value: Array ( [0] => aaa [1] => bbb [2] => ccc [3] => ddd )
Get key1 value:
Get key2 value:
I am not sure what's going on , but please submit a ticket here
 
Top