WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: W3 Total Cache] Plugin reports memcached is not working... (10 posts)

  1. cactuscarl
    Member
    Posted 4 years ago #

    I recently installed memcached on my VPS and confirmed that it's working:

    memcache support enabled
    Active persistent connections 0
    Version 2.2.5
    Revision $Revision: 1.111 $

    Directive Local Value Master Value
    memcache.allow_failover 1 1
    memcache.chunk_size 8192 8192
    memcache.default_port 11211 11211
    memcache.default_timeout_ms 1000 1000
    memcache.hash_function crc32 crc32
    memcache.hash_strategy standard standard
    memcache.max_failover_attempts 20 20

    After installing the 0.8 version of the plugin, I see this at the top of the setup page:

    Database caching is not available. Memcached server localhost:11211 is not running or is non-responsive.

    What can I do to correct this?
    Thanks!

    http://wordpress.org/extend/plugins/w3-total-cache/

  2. Frederick Townes
    Member
    Posted 4 years ago #

    Do you have memcached installed and running as daemon on port 11211 listening on localhost? it appears you have successful installed the PECL Memcache PHP extension which is great, but only 50% of the installation (and not the required bit).

    Please check out the instructions in the plugin to make sure that everything is all set for memcached daemon.

  3. cactuscarl
    Member
    Posted 4 years ago #

    frederick,

    First of all I thank you for the excellent plugin! I can't wait to unleash the full potential.

    I ran a module installer in WHM/cPanel before I found your instructions. It looks like I may be using a different flavor or memcached??? My version is 2.2.5.

    The install was automated so now I'm trying to figure out how to run memcached. I recycled Apache assuming memcached would start with it but I still get the error message.

    Any suggestions?

  4. cactuscarl
    Member
    Posted 4 years ago #

    I found the command I need to run:

    memcached -d -m 1024 -u root -l 127.0.0.1 -p 11211

    Now I just need to find out where it was installed so I can run it!

  5. cactuscarl
    Member
    Posted 4 years ago #

    Woohoo! I got it working! All I had to do was follow the instructions under "Memcached (daemon) Install".

    The only step I could not complete was #7 to make sure memcached starts with server reboot. When I execute this:

    # touch /etc/rc.d/init.d/memcached

    I got an error - something about file not found. The path does exist but for some reason it won't create the file?? Ideas?

  6. cactuscarl
    Member
    Posted 4 years ago #

    Oh, I'm also making use of the memcache.php app you include with the plugin. That's how I confirmed it's working

    :o)

  7. Frederick Townes
    Member
    Posted 4 years ago #

    Make sure that you # chmod +x /etc/rc.d/init.d/memcached as it says in the instructions, then # /etc/rc.d/init.d/memcached will work.

  8. cactuscarl
    Member
    Posted 4 years ago #

    OK I got the memcached file set up. What if I need to change the amount of memory I want to use (i.e. -m 256 instead of 128) ?

    I guess I need to know how to stop memcached first right?

  9. Frederick Townes
    Member
    Posted 4 years ago #

    You can stop memcached like any other process with a kill command if you know the process ID. As for the memory, 256 - 348 is often "enough."

  10. cactuscarl
    Member
    Posted 4 years ago #

    Cool thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic