I will elaborate my response a bit more. Sorry for the inconveniences it may cause you.
There is already a Memcached installed in the stack that is not compatible with these instructions?
The original Bitnami WordPress image does not include Memcached. You will need to install it on your server to be able to use it. For that installation process you have two different options:
- Installing a Bitnami Memcached Stack on your server.
chmod 755 bitnami-memcached-1.5.16-0-linux-x64-installer.run
#install to directory: /opt/bitnami/memcached
- Installing the Memcached server from the system repositories using the
According to your first post, you did both options, and the second one didn't start because the Memcached server installed with the Bitnami Memcached Stack was running and already using the default port, 11211. You will need to decide which Memcached server (Bitnami's or system) you want to use and uninstall the other one to avoid conflicts between them in the future.
Apart from the above, when you selected the installation directory for the Bitnami Memcached Stack (
/opt/bitnami/memcached), you selected the installation directory for a completely new and isolated Bitnami installation on your server. It means that this Memcached installation is not part of the original Bitnami installation (even if it is placed inside its installation directory). It's as if you installed Memcached at
/opt/memcached instead of
/opt/bitnami/memcached. It will be accessible on your server but you can not start/stop it from the Bitnami installation. To be more specific:
sudo /opt/bitnami/ctlscript.sh restart apache will work because the Apache service belongs to the
sudo /opt/bitnami/ctlscript.sh restart memcached won't work because the Memcached service does not belong to the
sudo /opt/bitnami/memcached/ctlscript.sh restart memcached will work as the Memcached service belongs to the
Please note the different paths in the commands above when calling the
You can use the Memcached service from the
/opt/bitnami installation as you would use any other service on your system, but I wanted to be clear about the point of controlling the service.
About the compilation issues, I have been able to reproduce your issue in the
php7 branch, but I was able to properly build the Memcached extension with the
master branch. I checked the Memcached PHP extension repo and I see that this error is already reported
Could you please try to build the
master branch version of the library and use it? You will need to check with the extension developers for an estimation date of the fix.
git checkout master
./configure --enable-memcached --with-zlib-dir=/opt/bitnami/common --with-libmemcached-dir=/opt/bitnami/common --with-php-config=/opt/bitnami/php/bin/php-config --disable-memcached-sasl
sudo make install
I hope I clarified my first post. Let me know if you have any other question.