OK, update:
I found this guide here: https://docs.bitnami.com/general/apps/wordpress/configuration/install-modules-php/#memcached-using-libmemcached
But it ends with the following error when I invoke "make":
...
CXX clients/memflush.o
clients/memflush.cc: In function âint main(int, char**)â:
clients/memflush.cc:42:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if (opt_servers == false)
^~~~~
clients/memflush.cc:51:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if (opt_servers == false)
^~~~~
make[1]: *** [Makefile:5832: clients/memflush.o] Error 1
make[1]: Leaving directory '/tmp/libmemcached-1.0.18'
make: *** [Makefile:3700: all] Error 2
I tried a different source to wget : https://launchpad.net/libmemcached/1.0/1.0.18/+download/libmemcached-1.0.18.tar.gz
but that also failed.
Then I tried an older version:
https://launchpad.net/libmemcached/1.0/1.0.17/+download/libmemcached-1.0.17.tar.gz
Then I found this post:
And I tried the suggested:
sudo apt install libmemcached-dev
Seemed to install fine.
I uncommented this line in httpd.conf:
LoadModule socache_memcache_module modules/mod_socache_memcache.so
I added this to php.ini:
extension=memcached.so
Then I restarted php / apache etc with:
sudo /opt/bitnami/ctlscript.sh restart
To test I used your page here: https://docs.bitnami.com/google-templates/infrastructure/memcached/troubleshooting/test-memcached/
And these seems to be working now. I also have the memcached appearing in the output of phpinfo();
ďżź
I followed the rest of the instructions on your wordpress memcached guide, but not all succesfully:
this command failed:
mv /opt/bitnami/memcached/scripts/ctl.sh.disabled /opt/bitnami/memcached/scripts/ctl.sh
sudo /opt/bitnami/ctlscript.sh start memcached
not surprising - I'm not sure where memcached has installed, and it isn't in the bitnami directory....
I will have to make do with using commands outside of the bitnami control script to control memcached for the time being ... and make sure that memcached starts when the machine is restarted!
I next need to figure out how to configure Wordpress to use memcached. Your wordpress guide didn't go into that detail, which I found odd.