• Resolved chun0914

    (@chun0914)


    I am using Docker to package WordPress, and I have the following command in my Dockerfile:

    RUN apt-get update && \
    apt-get install -y libz-dev libmemcached-dev zlib1g-dev && \
    apt-get install -y memcached libmemcached-tools && \
    pecl install memcached && \
    docker-php-ext-enable memcached

    I can successfully connect to the Memcached server using telnet 127.0.0.1 11211, but I am encountering an error on the WordPress settings page, and the cache functionality is not working. Can you please advise on what I might be doing wrong?


    The following memcached servers are not responding or not running:

    • Database Cache: 127.0.0.1:11211.
    • Page Cache: 127.0.0.1:11211.

    This message will automatically disappear once the issue is resolved.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter chun0914

    (@chun0914)

    Here is the information for you reference

    Server Modules & Resources:

    • Plugin Version: 2.3.2
    • PHP Version: 8.0.29;
    • Web Server: Apache
    • FTP functions: Installed (required for Self-hosted (FTP) CDN support)
    • Multibyte String support: Installed (required for Rackspace Cloud Files support)
    • cURL extension: Installed (required for Amazon S3, Amazon CloudFront, Rackspace CloudFiles support)
    • zlib extension: Installed (required for gzip compression support)
    • brotli extension: Not detected (required for brotli compression support)
    • Opcode cache: Installed (OPCache)
    • Memcached extension: Installed
    • Memcache extension: Not available
    • Redis extension: Not available
    • HTML Tidy extension: Not installed (required for HTML Tidy minifier support)
    • Mime type detection: Installed (Fileinfo) (required for CDN support)
    • Hash function: Installed (hash)
    • Open basedir: Off
    • zlib output compression: Off
    • set_time_limit: Available
    • SSH2 extension: Not detected (required for Self-hosted (FTP) CDN SFTP support)
    • mod_deflate: Installed (required for disk enhanced Page Cache and Browser Cache)
    • mod_env: Installed (required for disk enhanced Page Cache and Browser Cache)
    • mod_expires: Installed (required for disk enhanced Page Cache and Browser Cache)
    • mod_filter: Installed (required for disk enhanced Page Cache and Browser Cache)
    • mod_ext_filter: Not installed (required for disk enhanced Page Cache and Browser Cache)
    • mod_headers: Installed (required for disk enhanced Page Cache and Browser Cache)
    • mod_mime: Installed (required for disk enhanced Page Cache and Browser Cache)
    • mod_rewrite: Installed (required for disk enhanced Page Cache and Browser Cache)
    • mod_setenvif: Installed (required for disk enhanced Page Cache and Browser Cache)

    WordPress Resources

    • /var/www/html/.htaccess: OK
    • /var/www/html/wp-content: OK
    • /var/www/html/wp-content/uploads/2023/06: OK
    • Fancy permalinks: /%category%/%postname%/
    • WP_CACHE define: Defined (true)
    • URL rewrite: Enabled
    • Network mode: On (subdir)
    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @chun0914

    I am sorry about the issue you are experiencing and I am happy to assist you with this.

    Have you tried restarting the memcached service or your apache/nginx?

    Check the service at the CLI/SSH: memcached-tool 127.0.0.1:11211 display and memcached-tool 127.0.0.1:11211 stats.

    telnet 127.0.0.1 11211

    should communicate with memcache and respond to status commands etc

    Look if the service is running: ps afux | grep memc

    restart the service if needed (as root/sudo): service memcached restart.

    Also, make sure to check this video for more details.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘memcached does not work’ is closed to new replies.