WordPress.org

Ready to get started?Download WordPress

Forums

WP-FFPC
[resolved] connect to memcached unix socket (10 posts)

  1. serons
    Member
    Posted 1 year ago #

    Can the connection to memcached be by unix socket instead of IP address and port?

    http://wordpress.org/extend/plugins/wp-ffpc/

  2. petermolnar
    Member
    Plugin Author

    Posted 1 year ago #

    I was not able to get memcached work with unix socket ( not the plugin; the server itself ), so this function is not tested.
    In theory it's possible to put it into the memcached server list as unix socket.

  3. petermolnar
    Member
    Plugin Author

    Posted 1 year ago #

    Hi serons,

    Any news, were you able to test it?

  4. serons
    Member
    Posted 1 year ago #

    I couldn't make it work with socket.

  5. xxdesmus
    Member
    Posted 10 months ago #

    ugh ... very much needed here.

  6. petermolnar
    Member
    Plugin Author

    Posted 10 months ago #

    Hi xxdesmus,

    I know it would be important, but the issues seems to be with theh PHP plugins, not mine.

  7. dch921
    Member
    Posted 10 months ago #

    It does work I have a couple sites running nginx server that I have been using the plugin on. Using memcache on one and memcached on the other

    just change the following server line

    # PHP-FPM upstream; change it accordingly to your local config!
    	upstream php-fpm {
    		server 127.0.0.1:9000;

    to something like this

    # PHP-FPM upstream; change it accordingly to your local config!
    	upstream php-fpm {
    		server unix:/var/run/php5-fpm.sock;
  8. petermolnar
    Member
    Plugin Author

    Posted 10 months ago #

    Those lines are for PHP-FPM, not memcached and nginx's configuration, not the plugin's.
    The original question is to connect to memcached from within PHP, not from nginx.

  9. petermolnar
    Member
    Plugin Author

    Posted 8 months ago #

    I've found the root of the issue; I'll add the feature in release 1.3

  10. petermolnar
    Member
    Plugin Author

    Posted 3 months ago #

    I've released 1.3, unix socket connection should be available now, but I welcome any tests; there's always a window for mistakes.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.