Last active
September 29, 2021 00:07
-
-
Save maorpolak/678400fef1a81f2a72da4e23948e2075 to your computer and use it in GitHub Desktop.
Install Memcached for XAMPP on macOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Install libmemcached with brew: | |
> brew install libmemcached | |
2. Install memcached with pecl: | |
- > sudo /Applications/XAMPP/xamppfiles/bin/pecl install memcached | |
- When prompted for the libmemcached directory, press 'Enter' and the installer will automatically find it. | |
3. Add the memcached extension to your php.ini file: | |
- > sudo vim /Applications/XAMPP/xamppfiles/etc/php.ini | |
- Add 'extension=memcached.so' to the file | |
4. Restart your Apache server (either use the GUI or run): | |
> sudo apachectl restart | |
5. Start memcached with brew: | |
> brew services start memcached |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment