Skip to content

Instantly share code, notes, and snippets.

@Feiron
Last active February 14, 2023 08:49
Show Gist options
  • Save Feiron/58de2e3afaa8b9ad40aaf2f961e3e5d4 to your computer and use it in GitHub Desktop.
Save Feiron/58de2e3afaa8b9ad40aaf2f961e3e5d4 to your computer and use it in GitHub Desktop.
[memcached socket] Сокет мемкеша #centos #bitrix #memcached #bitrixvm
<?php
return array (
'cache' => array(
'value' => array (
'type' => 'memcache',
'memcache' => array(
'host' => 'unix:///tmp/memcached.sock',
'port' => '0'
),
'sid' => $_SERVER["DOCUMENT_ROOT"]."#01"
),
),
);
?>
# /etc/sysconfig/memcached
PORT="0"
USER="bitrix"
MAXCONN="1024"
CACHESIZE="64"
OPTIONS="-s /tmp/memcached.sock -a 0600"
systemctl restart memcached
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment