Dev PHP - Linux - Plesk

memecached plesk ubuntu 12 php 7

Install memcached

 

/opt/plesk/php/7.1/bin/pecl install memcached 
apt-get install make plesk-php71-dev gcc libmemcached-dev git pkg-config zlib1g-dev
<?php
//phpinfo();
error_reporting(E_ALL|E_STRICT);

ini_set('display_errors', true);


$mem = new Memcached();
$mem->addServer("127.0.0.1", 11211);

$result = $mem->get("blah");

echo '<hr>';

$mem = new memcached();

$mem->addServer("127.0.0.1", 11211);

$result = $mem->get("Test");

if ($result) {

echo $result;

} else {

echo "Test key not found, adding key";

$mem->set("Test", "I found a match, memcache is working") or die("Nothing Saved...");

}

?> 
 

Remove mail queue postifx by subject

Remove mail queue postifx by subject

Supprimer les email en attente par sujet suite à un hack de boite email, plesk postfix

Pour voir quelle boite email envoie les spam il faut faire une recherche sur sasl_username

find /var/spool/postfix/deferred/ -exec grep -l 'sujet' {} \; | xargs -r -n1 basename | xargs -r -n1 postsuper -d
Home