Installing memcached on BitrixVM and activating it in Bitrix
Rus
Eng
Установка memcached на BitrixVM и его активация в Битрикс

All English-language materials have been translated fully automatically using the Google service

Making settings in Bitrix

Editing the file /bitrix/php_interface/dbconn.php

define("BX_CACHE_TYPE", "memcache");
define("BX_CACHE_SID", $_SERVER["DOCUMENT_ROOT"]."#01");
define("BX_MEMCACHE_HOST", "127.0.0.1");
define("BX_MEMCACHE_PORT", "11211");

Editing the file /bitrix/.settings.php . If this section is in the file, then we bring it to the form, if there is no section, then add:

'cache' => array(
    'value' => array (
        'type' => 'memcache',
        'sid' => $_SERVER["DOCUMENT_ROOT"]."#01",
        'memcache' => array(
            'host' => '127.0.0.1',
            'port' => '11211',
        ),
    ),
    'readonly' => false,
),

You can also create a file /bitrix/.settings_extra.php

return array(
  'cache' => array(
    'value' => array(
      'type' => 'memcache',
      'memcache' => array(
        'host' => '127.0.0.1',
        'port' => '11211',
      ),
      'sid' => $_SERVER["DOCUMENT_ROOT"]."#01"
    ),
  ),
);

Editing the server side:

In the bitrixvm control panel, activate the composite mode according to documentation

Set memcached to BitrixVM

 yum -y install memcached 

In the file / etc / sysconfig / memcached , replace the line OPTIONS with:

 OPTIONS = "- l 127.0.0.1" 

We start the service

 service memcached start 

Adding memchaced to startup

 chkconfig memcached on 

You may need to install the PHP-memcache library, which is installed on BitrixVM by default

 yum -y install php-pecl-memcache 

Bitrix memcached documentation

Clear cache memcached

Via telnet

telnet localhost 11211
flush_all
quit

Via netcat

echo "flush_all" | nc localhost 11211

Comments

There are no comments yet, you can be the first to leave it

Leave a comment

The site uses a comment pre-moderation system, so your message will be published only after approval by the moderator

You are replying to a user's comment

Send

FEEDBACK

Email me

Are you developing a new service, making improvements to the existing one and want to be better than your competitors? You have come to the right place. I offer you a comprehensive studio-level website development. From me you can order design, layout, programming, development of non-traditional functionality, implementation of communication between CMS, CRM and Data Analitics, as well as everything else related to sites, except for promotion.

Contact, I will always advise on all questions and help you find the most effective solution for your business. I am engaged in the creation of sites in Novosibirsk and in other regions of Russia, I also work with the CIS countries. You will be satisfied with our cooperation

An error occurred while sending, please try again after a while
Message sent successfully

Phones

+7(993) 007-18-96

Email

info@tichiy.ru

Address

Россия, г. Москва

By submitting the form, you automatically confirm that you have read and accept the Privacy Policy site

Contact with me
Send message
By submitting the form, you automatically confirm that you have read and accept Privacy policy of site
Sending successful!
Thank you for contacting :) I will contact you as soon as possible
Sending failed
An error occurred while sending the request. Please wait and try again after a while or call my phone number