Memcached via Containers
Last modified: December 1, 2022
This document explains how to set up Memcached in an EasyApache 4 container. Memcached is a distributed memory-caching system. This document only applies to the EasyApache 4-provided Memcached package.
We provide Memcached version 1.6 for use with containers. You can only install container-based packages on systems that use EasyApache 4’s containers and run AlmaLinux OS 8, Rocky Linux™ 8, or Ubuntu®.
container-namerepresents the name of your Memcached container. You can find your containers’ names with either the
runningoptions of the
Install Memcached via containers
To install Memcached in a container on a system that runs EasyApache 4, you must first set up EasyApache 4 containers on your system.
After you set up containers on your system, install the
ea-memcached16 package to add Memcached to your system.
Set up Memcached inside containers
To set up Memcached to run inside a container, perform the following steps:
- Log in to the cPanel user account via SSH. You can do this using one of the following methods:
- Run the following command:
/usr/local/cpanel/scripts/ea-podman install ea-memcached16
- Run the following command to retrieve the container’s name. You will need this name to perform any further actions.
For more information, read our
/usr/local/cpanel/scripts/ea-podman script documentation.
Configure Memcached in a container
When you install Memcached into a container, it creates a directory in the
~/ea-podman.d/container-name directory in the user’s
home directory. The system creates the
memcache.sock socket when it sets up Memcached.
To use Memcached with your applications, direct your application to use the