---
title: Improving the performance of CMS Bitrix
description: To improve the performance of a site on CMS Bitrix, it is recommended to transfer it to a server with a BitrixVM control panel. You can order a virtual or dedicated server with the BitrixVM panel on o
---

[Skip to content](https://help.ishosting.com/en/improving-the-performance-of-cms-bitrix#main-content)

- [English](https://help.ishosting.com/en/improving-the-performance-of-cms-bitrix)
- [Русский](https://help.ishosting.com/ru/improving-the-performance-of-cms-bitrix)

English

Show submenu for translations

[![is\*hosting](https://help.ishosting.com/hubfs/Logo_Ishosting_mono-1.svg)](https://help.ishosting.com/en)

- [Blog](https://blog.ishosting.com/en)
- [Support](https://my.ishosting.com/en/tickets)

Open main navigation

Close main navigation

- [Blog](https://blog.ishosting.com/en)
- [Support](https://my.ishosting.com/en/tickets)
- - [English](https://help.ishosting.com/en/improving-the-performance-of-cms-bitrix)
    - [Русский](https://help.ishosting.com/ru/improving-the-performance-of-cms-bitrix)

  English
  
  Show submenu for translations
- [Go to ishosting.com](https://ishosting.com/)

[Go to ishosting.com](https://ishosting.com/)

 Hello. How can we help you?

- There are no suggestions because the search field is empty.

1. [Help Center](https://help.ishosting.com/en)
2. [Server Administration](https://help.ishosting.com/en/server-administration)
3. [BitrixVM](https://help.ishosting.com/en/server-administration#bitrixvm)

# Improving the performance of CMS Bitrix

To improve the performance of a site on CMS Bitrix, it is recommended to transfer it to a server with a BitrixVM control panel.

You can order a virtual or dedicated server with the BitrixVM panel [on our website](https://ishosting.com/en/vps).

When ordering a virtual or dedicated server with the BitrixVM panel and standard administration our specialists will transfer all your sites for free. You can also transfer sites yourself.

### Setting up CMS Bitrix

1. In the System Check section, all entries must be specified correctly, without errors.
2. In the Performance Panel section, in the Bitrix tab, set the Bitrix value (optimal).
3. Set DB table type to InnoDB. It is also recommended to perform database optimization. Make a backup first.

#### Server Tuning

**1.** Connect to the server by ssh as root.

**2.** To start the BitrixVM virtual environment run:

```
~/menu.sh
```

**3.** Click **4 Configure memcahed servers**.

**4.** Next, memcached will be installed. In the process, when prompting for the hostname of the server, specify the ServerName from the table displayed on the screen.

**5.** Next open the config file /etc/sysconfig/memcached

```
vi /etc/sysconfig/memcached
```

By default, BitrixVM uses vi editor.

You can also install the more common nano editor. To do this, run the command:

```
yum install -y nano
```

To open the config file /etc/sysconfig/memcached using nano editor enter:

```
nano /etc/sysconfig/memcached
```

**6.** In an open configuration file, set the following parameters:

```
# number of concurrent connections (default 1024)MAXCONN = "1024"# the amount of memory allocated for the cache (default 64MB)CACHESIZE = "1024"# number of memcached threadsOPTIONS = "- t 4"
```

Save your changes to the file.

**7.** To restart the service run:

```
systemctl restart memcached.service
```

**8.** Open the file **/bitrix/php\_interface/dbconn.php** :

```
nano /path/to/site/bitrix/php_interface/dbconn.php
```

**/path/to/site/** in Bitrix 7 is usually  **/home/bitrix/www/**

**9.** To connect memcached in the file, set the following parameters:

```
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");
```

Save your changes to the file.

**10.** Open the file /bitrix/.settings\_extra.php:

```
nano /path/to/site/bitrix/.settings_extra.php
```

Set the following parameters in the open file:

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

Save your changes to the file.

To speed up the site, it is also recommended to move the directory for MySQL temporary files to a RAM disk.

**1.** Create a folder for temporary files:

```
mkdir /var/lib/mysql/tmp
```

**2.** Set the owner and group of the folder:

```
chown mysql:mysql /var/lib/mysql/tmp
```

**3.** To find out the mysql user and group identifiers (uid and gid), enter:

```
id mysql
```

**4.** Open the file /etc/fstab:

```
nano /etc/fstab
```

**5.** At the end of the file add the line:

```
tmpfs /var/lib/mysql/tmp tmpfs rw,gid=27,uid=27,size=2G,nr_inodes=10k,mode=0700 0 0
```

When setting size, consider the amount of RAM available.

**6.** Mount the partition:

```
mount /var/lib/mysql/tmp
```

**7.** Add line in MySQL config file **/etc/mysql/my.cnf/**:

```
tmpdir=/var/lib/mysql/tmp
```

**8.** To restart MySQL, enter:

```
systemctl restart mysqld
```

To use deferred transactions open the file /etc/mysql/conf.d/z\_bx\_custom.cnf and add to it:

```
innodb_flush_log_at_trx_commit = 0
```

If you have any questions, please create a [**ticket to technical support**](https://ishosting.com/en/support).

- [Virtual Private Servers](https://help.ishosting.com/en/virtual-private-servers#main-content)

    - [Getting Started](https://help.ishosting.com/en/virtual-private-servers#getting-started)
    - [Working with VPS](https://help.ishosting.com/en/virtual-private-servers#working-with-vps)
    - [Software](https://help.ishosting.com/en/virtual-private-servers#software)
    - [Backup and Data Storage](https://help.ishosting.com/en/virtual-private-servers#backup-and-data-storage)
    - [Additional Services](https://help.ishosting.com/en/virtual-private-servers#additional-services)
    - [VPS Load](https://help.ishosting.com/en/virtual-private-servers#vps-load)
    - [Other Issues](https://help.ishosting.com/en/virtual-private-servers#other-issues)
- [Dedicated Servers](https://help.ishosting.com/en/dedicated-servers#main-content)

    - [Getting Started](https://help.ishosting.com/en/dedicated-servers#getting-started)
    - [Working with Dedicated Server](https://help.ishosting.com/en/dedicated-servers#working-with-dedicated-server)
    - [Additional Services](https://help.ishosting.com/en/dedicated-servers#additional-services)
    - [Other Issues](https://help.ishosting.com/en/dedicated-servers#other-issues)
- [Server Administration](https://help.ishosting.com/en/server-administration#main-content)

    - [API](https://help.ishosting.com/en/server-administration#api)
    - [Windows Instructions](https://help.ishosting.com/en/server-administration#windows-instructions)
    - [UNIX Instructions](https://help.ishosting.com/en/server-administration#unix-instructions)
    - [ispmanager](https://help.ishosting.com/en/server-administration#ispmanager)
    - [VestaCP](https://help.ishosting.com/en/server-administration#vestacp)
    - [DirectAdmin](https://help.ishosting.com/en/server-administration#directadmin)
    - [BitrixVM](https://help.ishosting.com/en/server-administration#bitrixvm)
    - [Security](https://help.ishosting.com/en/server-administration#security)
    - [DDoS Protection](https://help.ishosting.com/en/server-administration#ddos-protection)
    - [Working with Files](https://help.ishosting.com/en/server-administration#working-with-files)
    - [Databases](https://help.ishosting.com/en/server-administration#databases)
    - [PHP](https://help.ishosting.com/en/server-administration#php)
    - [Logs and Statistics](https://help.ishosting.com/en/server-administration#logs-and-statistics)
    - [Diagnostics and Troubleshooting](https://help.ishosting.com/en/server-administration#diagnostics-and-troubleshooting)
    - [HestiaCP](https://help.ishosting.com/en/server-administration#hestiacp)
    - [cPanel](https://help.ishosting.com/en/server-administration#cpanel)
    - [aaPanel](https://help.ishosting.com/en/server-administration#aapanel)
    - [FastPanel](https://help.ishosting.com/en/server-administration#fastpanel)
    - [Other](https://help.ishosting.com/en/server-administration#other)
- [Mail](https://help.ishosting.com/en/mail#main-content)

    - [Getting Started](https://help.ishosting.com/en/mail#getting-started)
    - [ispmanager](https://help.ishosting.com/en/mail#ispmanager)
    - [DirectAdmin](https://help.ishosting.com/en/mail#directadmin)
    - [VestaCP](https://help.ishosting.com/en/mail#vestacp)
    - [Other Issues](https://help.ishosting.com/en/mail#other-issues)
- [VPN](https://help.ishosting.com/en/vpn#main-content)

    - [Getting Started](https://help.ishosting.com/en/vpn#getting-started)
    - [Android](https://help.ishosting.com/en/vpn#android)
    - [iOS](https://help.ishosting.com/en/vpn#ios)
    - [macOS](https://help.ishosting.com/en/vpn#macos)
    - [Mikrotik](https://help.ishosting.com/en/vpn#mikrotik)
    - [Linux](https://help.ishosting.com/en/vpn#linux)
    - [Windows](https://help.ishosting.com/en/vpn#windows)
    - [Amnezia VPN](https://help.ishosting.com/en/vpn#amnezia-vpn)
    - [Hysteria](https://help.ishosting.com/en/vpn#hysteria)
- [Data Storage](https://help.ishosting.com/en/data-storage#main-content)

    - [Getting Started](https://help.ishosting.com/en/data-storage#getting-started)
    - [Backups](https://help.ishosting.com/en/data-storage#backups)
    - [Other](https://help.ishosting.com/en/data-storage#other)
- [SSL Certificates](https://help.ishosting.com/en/ssl-certificates#main-content)

    - [Getting Started](https://help.ishosting.com/en/ssl-certificates#getting-started)
    - [Install](https://help.ishosting.com/en/ssl-certificates#install)
- [Affiliate Program](https://help.ishosting.com/en/affiliate-program)
- [​​Additional Services​](https://help.ishosting.com/en/additional-services#main-content)

    - [Additional IP](https://help.ishosting.com/en/additional-services#additional-ip)
    - [Control Panels](https://help.ishosting.com/en/additional-services#control-panels)
    - [Antivirus](https://help.ishosting.com/en/additional-services#antivirus)
- [Client Area](https://help.ishosting.com/en/client-area#main-content)

    - [Balance History](https://help.ishosting.com/en/client-area#balance-history)
- [Payment for Services](https://help.ishosting.com/en/payment-for-services#main-content)

    - [Getting Started](https://help.ishosting.com/en/payment-for-services#getting-started)
    - [My Account](https://help.ishosting.com/en/payment-for-services#my-account)
    - [Payments](https://help.ishosting.com/en/payment-for-services#payments)
    - [Other Issues](https://help.ishosting.com/en/payment-for-services#other-issues)
- [Documents and Policies](https://help.ishosting.com/en/documents-and-policies#main-content)

    - [General](https://help.ishosting.com/en/documents-and-policies#general)
    - [Company](https://help.ishosting.com/en/documents-and-policies#company)
- [Questions and Answers](https://help.ishosting.com/en/questions-and-answers#main-content)

    - [Control Panels](https://help.ishosting.com/en/questions-and-answers#control-panels)
    - [ispmanager](https://help.ishosting.com/en/questions-and-answers#ispmanager)
    - [Windows](https://help.ishosting.com/en/questions-and-answers#windows)
    - [Linux](https://help.ishosting.com/en/questions-and-answers#linux)
    - [Mail](https://help.ishosting.com/en/questions-and-answers#mail)
    - [Other](https://help.ishosting.com/en/questions-and-answers#other)
- [Special Offers](https://help.ishosting.com/en/special-offers)
- [is\*smart](https://help.ishosting.com/en/issmart#main-content)

    - [General Info](https://help.ishosting.com/en/issmart#general-info)
    - [Getting Started](https://help.ishosting.com/en/issmart#getting-started)
    - [API](https://help.ishosting.com/en/issmart#api)
    - [AI Models](https://help.ishosting.com/en/issmart#ai-models)
- [List of Apps](https://help.ishosting.com/en/list-of-apps)

[![is\*hosting](https://help.ishosting.com/hubfs/ishosting-logo-black.svg "is*hosting")](https://ishosting.com)

<https://www.facebook.com/ishostingcom> <https://twitter.com/ishostingcom> <https://www.instagram.com/is.hosting> <https://www.youtube.com/@ishosting> <https://www.linkedin.com/company/is-hosting>

Copyright © 2025, © Webrain OÜ