Welkom bij Bandhosting.nl,
hosting en webdevelopment.

Install memcached on php 7.4 on OSX

The following commands can be used in order to install memcached in php 7.4:

brew install libmemcached
brew install zlib
pecl install memcached

Enter the following items:

libmemcached directory [no] : /usr/local/Cellar/libmemcached/1.0.18_2/
zlib directory [no] : /usr/local/Cellar/zlib/1.2.11/
use system fastlz [no] :
enable igbinary serializer [no] :
enable msgpack serializer [no] :
enable json serializer [no] :
enable server protocol [no] :
enable sasl [yes] :
enable sessions [yes] :

After this, you can extension="memcached.so" to your php.ini file (if it wasn't added automatically).

You can verify the installation with the following command: php -m

That will list all enabled modules, memcached should be on the list.