Install Memcached on cPanel Server

Login to WHM as user root, go to Terminal or login to SSH as user root. Then run the command yum install memcached Enable memcached to start on boot. systemctl enable memcached Configure memcached Default configuration on AlmaLinux 9 look like the following PORT=”11211″ USER=”memcached” MAXCONN=”1024″ CACHESIZE=”64″ OPTIONS=”-l 127.0.0.1,::1″ edit configuration file vi /etc/sysconfig/memcached Lets … Read more

How to run multiple memcached instances

I had copied a PrestaShop site to another domain. Both domains are on same server, using same Memcached server for caching. When i visit one of the site, resources like css/js files are loading from other website. To fix this, i configured 2 Memcached servers running on 2 different ports, each site use its own … Read more

Enable memcached on Magento 2 in Plesk Server

memcached telnet

To install memcached, run apt install php-memcached apt install build-essential apt install autoconf automake gcc libmemcached-dev libhashkit-dev pkg-config plesk-php*-dev zlib1g-dev Enable memcached php module /opt/plesk/php/7.3/bin/pecl install memcached This is for PHP 7.3, change the path to pecl for your version of PHP. Activate memcached echo “extension=memcached.so” > /opt/plesk/php/7.3/etc/php.d/memcached.ini Update php handler plesk bin php_handler –reread … Read more

Secure Memcached on CentOS/RHEL 7

By default memcached on CentOS 7 is set to run on all IP address on the server. This allow attackers to abuse the service. To set memcached to only listen to localhost (127.0.0.1), edit file vi /etc/sysconfig/memcached Find OPTIONS=”” Replace with OPTIONS=”-l 127.0.0.1″ See memcached

Install memcached on CentOS 7

To install memcached on CentOS 7, run Set memcached to start on boot Start memcached with Installing PHP Module You need remi repository installed, which provide a memcached module for all versions of php they support. For PHP 5.6, run Now phpinfo() will show See memcached