Learn about Centmin Mod LEMP Stack today
Become a Member

Beta Branch fix memcached server unix socket support for php in 123.09beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Feb 8, 2017.

  1. eva2000

    eva2000 Administrator Staff Member

    30,170
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,138
    Local Time:
    4:24 PM
    Nginx 1.13.x
    MariaDB 5.5
  2. eva2000

    eva2000 Administrator Staff Member

    30,170
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,138
    Local Time:
    4:24 PM
    Nginx 1.13.x
    MariaDB 5.5
    To apply fix:
    1. update centmin mod 123.09beta01 via centmin.sh menu option 23 submenu option 2
    2. then exit centmin.sh via menu option 24, change into directory /usr/local/src/centminmod again
      Code (Text):
      cd /usr/local/src/centminmod
    3. re-run centmin.sh to apply the automatic fix which will create a memcached user/group and change /etc/init.d/memcached reference from USER=nobody to USER=memcached and setup proper unix file permissions for memcached user including adding memcached user to nginx group
    4. then set SOCKET_ENABLE=y in /etc/init.d/memcached to enable unix socket and restart memcached server
    5. then edit your memcached.php file at /usr/local/nginx/html/memcache_XXXX.php where XXXX is randomly generated alphanumeric set of characters and change
      Code (Text):
      $MEMCACHE_SERVERS[] = 'localhost:11211'; //
      to
      Code (Text):
      $MEMCACHE_SERVERS[] = 'unix:///var/run/memcached/memcached1.sock';
    6. restart nginx + php-fpm services too
      Code (Text):
      nprestart

     
    Last edited: Feb 8, 2017