Report this

What is the reason for this report?

Installing Memcache for use with Ruby/Rails and Postgres

Posted on June 20, 2013

There’s an article in the community section https://www.digitalocean.com/community/articles/how-to-install-and-use-memcache-on-ubuntu-12-04 that has instructions about installing memcache.

The article says that PHP and mysql should be installed on the server: “Additionally, you should have MySQL and PHP installed on the virtual server. sudo apt-get install mysql-server php5-mysql php5 php5-memcache”

However, I’m not using PhP or mysql in my app. Do PHP and mysql need to be installed for the purpose of installing memcache, or did the article just assume that memcache would be used in an application with Php and mysql. I think the article suggests that PHP is needed to actually set up memcache because it talks about PEAr (a php package) being needed to store the repository

“The next step is to install php-pear, the repository that stores memcache. sudo apt-get install php-pear”

In my case, since I’m using Ruby/rails (and postgres), what should I do to install memcache?



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!

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.

“or did the article just assume that memcache would be used in an application with Php and mysql” <br> <br>That is correct. In your case, you only need to follow these two sections: <br> <br>- Install Memcache <br>- Confirm Memcache and See Stats

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.