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

  • Home
  • SEARCH
  • 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 8253049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T00:44:30+00:00 2026-06-08T00:44:30+00:00

When I try : $mc= new Memcached(); I get Fatal error: Class ‘Memcached’ not

  • 0

When I try :

$mc= new Memcached();

I get

Fatal error: Class 'Memcached' not found in /my/path

phpinfo says that /etc/php5/apache2/conf.d/20-memcached.ini is loaded as an additional .ini file.

The content of this file is this one :

; uncomment the next line to enable the module
extension=memcached.so

dpkg –get-selections | grep memcached

libmemcached6                                   install
memcached                                       install
php5-memcached                                  install

Kubuntu
Apache 2.0
php 5.4.4-1

Why do I have this fatal error ?

  • 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-08T00:44:32+00:00Added an answer on June 8, 2026 at 12:44 am

    Based on your comment I don’t think you have it installed properly. Make sure you see a see a section in phpinfo() such as:

    memcached
    memcached support   enabled
    Version     x.x.x
    libmemcached version    x.xx
    

    1) Get libmemcached

    2) Configure the package

    3) Make install sudo make install libmemcached

    4) Try Installing with Install with sudo pecl install memcached

    5) make sure you have extension = memcached.so in your php.ini

    Restart Apache

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

Sidebar

Related Questions

I am trying to get twitter updates like this: try { $doc = new
Im want to start a new project using memcached with C# and I found
If I run phpinfo() it tells me that memcached is installed. memcached memcached support
When an exception is thrown or encountered: void ThrowException() { try { throw new
I'm pretty proficient in PHP, but want to try something new. I'm also know
I try to use new Function() in a calculator and I find it does
my code is static { try { sessionFactory = new AnnotationConfiguration().configure().buildSessionFactory(); } catch (Throwable
If I want to try out something new in Ruby or Javascript, I love
I am creating date using following code try { newdatetime = new DateTime(2012, 2,
I have the following code to connect to MongoDB: try { $m = new

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.