Install Memcached without Apache (i.e. for Ruby on Rails with Nginx/Unicorn)

I was following this tutorial Unfortunately I don’t think it worked because I’m running the stock Ubuntu 14.04 image for Ruby on Rails that runs on Nginx and Unicorn. So when I do the steps in those instructions I get all sorts of fails during the step (associated with apache2):

sudo apt-get install mysql-server php5-mysql php5 php5-memcached memcached

So can someone please provide modified/alternative instructions for the Nginx/Unicorn case and Ruby on Rails (ideally for use with the Dalli memcached client)?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Actually, in my case, I think all that’s needed is: sudo apt-get install memcached. I verified it was actually running by executing /etc/init.d/memcached status and saw:

  • memcached is running

You can help by posting the errors here so we can know what is wrong and help you.