bchmemcached

Start memcached without SASL authentication

Disable SASL authentication

By default, memcached is configured to run with SASL authentication. This is highly recommended to secure your memcached installation.

To disable this authentication:

$ sudo mv /opt/bitnami/memcached/conf/sasl2 /opt/bitnami/memcached/conf/sasl2.disabled

Once done, restart the memcached server for the change to take effect.

$ sudo /opt/bitnami/ctlscript.sh restart

NOTE: If you see the following error it might be because you are using a Memcached client that does not support SASL authentication. You can either disable authentication as explained in this section or use a different Memcached client like the one used in the testing guide.

PHP Notice:  memcache_get(): Server 127.0.0.1 (tcp 11211, udp 0) failed with: Read failed (socket was unexpectedly closed) (0) in /home/bitnami/example.php on line 10
array(0) {
}

Enable SASL authentication

By default, memcached is configured to run with SASL authentication. This is highly recommended to secure your memcached installation.

If you have previously disabled this authentication and now want to re-enable it:

$ sudo mv /opt/bitnami/memcached/conf/sasl2.disabled /opt/bitnami/memcached/conf/sasl2

Restart the memcached server for the change to take effect.

$ sudo /opt/bitnami/ctlscript.sh restart
Last modification March 12, 2020