Hi, I've got a server with about 9 or 10 wordpress installations; looking at memcached as an object caching solution but still a little unclear on the proper method of installation.
The goal is to have memcached working for all of the wordpress based user accounts. From what I can tell it sounds like there are at least a couple of different methods of installing memcached on Almalinux8. It looks like I could install it directly on the server, or through podman with containers.
If I go with the container approach, it sounds like I would need to first setup EasyApache 4 Containers , then I would need to add the ea-php*-php-memcached extension in EA4 tools and install the ea-memcached16 package to each account container individually (is there a easy way to bulk install for all users?). This is where I get a little confused. How would I get wordpress to recognize memcached? This method would allow each account to have it's own seperate instance of memcached (great for security), but this would also use up more system resources as each account would need to have a dedicated container. Using this method is it possible to control how much memory is allocated to each individual user?
Alternatively, memcached could be installed directly on the server, but as far as I can tell, this approach only works for the server, and each individual user account would not have access, or if they were somehow given access, they would all be sharing the same resources which could lead to unfair memory usage and/or data leaks between accounts.
Wondering if anyone could suggest a recommended solution. Also, if you are using memcached; how did you install it and have you experienced any issues with functionality and or security?
Thanks,
References:
docs.cpanel.net
docs.cpanel.net
docs.cpanel.net
The goal is to have memcached working for all of the wordpress based user accounts. From what I can tell it sounds like there are at least a couple of different methods of installing memcached on Almalinux8. It looks like I could install it directly on the server, or through podman with containers.
If I go with the container approach, it sounds like I would need to first setup EasyApache 4 Containers , then I would need to add the ea-php*-php-memcached extension in EA4 tools and install the ea-memcached16 package to each account container individually (is there a easy way to bulk install for all users?). This is where I get a little confused. How would I get wordpress to recognize memcached? This method would allow each account to have it's own seperate instance of memcached (great for security), but this would also use up more system resources as each account would need to have a dedicated container. Using this method is it possible to control how much memory is allocated to each individual user?
Alternatively, memcached could be installed directly on the server, but as far as I can tell, this approach only works for the server, and each individual user account would not have access, or if they were somehow given access, they would all be sharing the same resources which could lead to unfair memory usage and/or data leaks between accounts.
Wondering if anyone could suggest a recommended solution. Also, if you are using memcached; how did you install it and have you experienced any issues with functionality and or security?
Thanks,
References:
Memcached via Containers | cPanel & WHM Documentation
This document explains how to set up Memcached in an EasyApache 4 container.

The ea-podman Script | cPanel & WHM Documentation
Use this script to manage your containers in EasyApache 4.

EasyApache 4 Containers | cPanel & WHM Documentation
Containers are a light-weight way to manage individual software images.

Last edited by a moderator: