Mac Install Memcache For Xampp With Homebrew
This is a quick guide for installing memcached on a Mac with Homebrew, and starting and stopping it with Lunchy. I hope this tutorial will get your memcached up and running in no time.
Install XAMPP Memcache Extension OSX 10.10 Yosemite. January 22, 2015. Try to install Memcache. Install Memcached for Mac. Check if this already installed or not $ memcached. If it’s not yet installed, install from homebrew $ brew install memcached Start Memcached memcached -d Stop Memcached. It seems there are 2 memcache extensions. There is memcached and memcache the latter one does not seem to be maintained anymore last stable from 2012. It looks like your code depends on Memcache since you are using brew, you could just do: brew install php55-memcache.
Step 1 — Install Homebrew
Installing Homebrew is super easy. Just paste this in your terminal —
You should also make sure your Homebrew is up-to-date. Use update and doctor commands to update and fix any issues it may have.
Step 2 — Install memcached
Installing anything with Homebrew is a breeze. All you need is
When you installed memcached, it put a file named homebrew.mxcl.memcached.plist in /usr/local/Cellar/memcached/$version/; you copy that file into ~/Library/LaunchAgents
and then tell launchd to start it with launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.memcached.plist
.
If you were watching the console carefully during the brew install command, it should have said something about doing these exact steps. If you run brew info it’ll re-print this information, e.g. brew info memcached.
Step 3 — Install Lunchy
But why remember this long location to start memcached every time? Lunchy is a gem that simplifies the command line interface to launchctl. To install Lunchy, do
Step 4 — Start/Stop memcached
Now we configure lunchy to start/stop memcached using simple lunchy commands.
Lines 1 and 2 copy the plist file to LaunchAgents. The lines 3 and 4 start and stop memcached. Since lunchy takes care of the long commands we talked about in Step 2, we don’t have to use the launchctl command to launch anymore. Silverfast ai studio 8 keygen mac photoshop.
Verify the Installation
Verify that you have successfully installed Memcached.
Using the Memcached Telnet InterfaceYou can connect to the Memcached server with Telnet.
To test if everything is working correctly, set a cache item.
To retrieve the cache item.
To exit the Telnet session.
For more information on using Memcached Telnet commands.
Invalidate All Cache Items
To flush the contents of your Memcached server. Useful in a development environment.
That's it.
About the App
- App name: XAMPP
- App description: xampp (App: Not Available)
- App website: https://www.apachefriends.org/
Install the App
- Press
Command+Space
and type Terminal and press enter/return key. - Run in Terminal app:
ruby -e '$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)' < /dev/null 2> /dev/null ; brew install caskroom/cask/brew-cask 2> /dev/null
and press enter/return key.
If the screen prompts you to enter a password, please enter your Mac's user password to continue. When you type the password, it won't be displayed on screen, but the system would accept it. So just type your password and press ENTER/RETURN key. Then wait for the command to finish. - Run:
brew cask install xampp
Done! You can now use XAMPP.