Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9229771
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:39:17+00:00 2026-06-18T05:39:17+00:00

after spending some time trying to setup Memcached on MAMP I can came into

  • 0

after spending some time trying to setup Memcached on MAMP I can came into a bit of a pickle…

On my php info file it states memcached and displays the relevant information:
Image of php info file

In order to learn and use Memcached I was using the following tutorial:
http://net.tutsplus.com/tutorials/php/faster-php-mysql-websites-in-minutes/?search_index=1

This is where I encountered my first issue, this being connecting to the Cache Server: by using what they had stated, did not seem to work.

define('MEMCACHED_HOST', '127.0.0.1');
define('MEMCACHED_PORT', '11211');
$memcache = new Memcache;
$cacheAvailable = $memcache->connect(MEMCACHED_HOST, MEMCACHED_PORT);

I tried changing 127.0.0.1 to localhost, this did not work. My first point of call was to change memcache to memcached… This still did not work.

Therefore I just want to clear up how to connect and test a connection has been made with Memcached. If there is in fact a different connection between Memcache and Memcached? Or maybe I have set something up wrong? Any advice or guidance is appreciated 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T05:39:18+00:00Added an answer on June 18, 2026 at 5:39 am

    I figured out the reason as to why I could not connect to Memcached and thought I would post the answer just incase anyone had the same issue I had.

    To solution was to type the following in Terminal:

    memcached -d
    

    As I figured out it seems memcached effectively needs to be switched on. The above code did that. Although every-time your restart your machine you will have to do what I just stated. Im still looking for a answer that auto starts memcached. If i come across it I shall update this article.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After spending quite a bit of time trying to design my way around the
After spending some time wireframing my ideas, I want to start building my rails
So after spending some time googling I finally got autotest to work on ubuntu
Earlier today I asked this question . After spending some time investigating this issue,
I've been spending quite some time trying to figure out how exactly to retrieve
I am new to DirectX, and after spending some time in reading the documentation
I'm spending some time learning how weak references work in C# and I came
I was trying to solve a problem on InterviewStreet. After some time I determine
I am trying to receive a json object back from php after sending data
After spending about 6-8 hours trying to digest the Manacher's algorithm, I am ready

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.