Guys,
I hope you can help, i have an LNMPA server, we tried to install memcached php. The installation seems to be fine as i can see the memcached on phpinfo. Now when i test this code
<?php
if(extension_loaded('Memcached')){
$m = new Memcached();
$servers = array(
array('127.0.0.1', 11211, 100),
);
if($m->addServers($servers)){
print_r($m->getStats()); // error here
}
}
?>
when print_r($m->getStats()); 502 Bad Gateway
Any idea?
TIA,
Mike