VK Cloud logo
Updated atNovember 10, 2023   10:48 AM

Installing 1C-Bitrix

1C-Bitrix: Site Management is a professional Internet resource management system with which you can create and maintain information portals, online stores and corporate websites.

This instruction will help you deploy 1C-Bitrix: Site management of the latest version in the Ubuntu 22.04 operating system in VK Cloud, as well as configure a DNS record for domain name access. MySQL 8.0 Single configuration is used as a DBMS.

Preparatory steps

  1. Register at VK Cloud.

  2. Create network1 network with internet access and a subnet with the address 10.0.0.0/24.

  3. Create VM:

    • name: Ubuntu_22_04_Bitrix;
    • operating system: Ubuntu 22.04;
    • network: network1 with subnet 10.0.0.0/24;
    • assign a public IP address. The example will use 87.239.105.191;
    • security groups (firewall settings): default, ssh+www.
  4. Create DB instance:

    • name: MySQL-1111;
    • DBMS: MySQL 8.0;
    • configuration type: Single;
    • network: network1;
    • DB name: MySQL-1111;
    • DB username: user;
    • DB password: AN0r25e0ae4d626p;

    In the example, the internal IP of the created instance: 10.0.0.7.

  5. Create DNS zone.

  6. Create an record in the selected zone:

    • record type: A;
    • name: for example, site-bitrix.example.vk.cloud;
    • IP address: external VM address 87.239.105.191.
  7. (Optional) Check the name resolution to the IP address using the command nslookup site-bitrix.example.vk.cloud. Output upon successful operation:

    1Non-authoritative answer:
    2Name:   site-bitrix.example.vk.cloud
    3Address: 87.239.105.191

2. Install Bitrix on VM

  1. Connect to the Ubuntu_22_04_Bitrix VM.

  2. Update the packages to the current version and reboot the VM using the commands:

    1sudo dnf update -y
    2sudo apt upgrade -y
    3sudo systemctl reboot
  3. Install the necessary packages for CMS Bitrix:

    sudo apt install apache2 apache2-utils libapache2-mod-php php8.1 php8.1-cli php8.1-curl php8.1-fpm php8.1-gd php8.1-intl php8.1-mbstring php8.1-mysql php8.1-opcache php8.1-readline php8.1-soap php8.1-xml php8.1-xmlrpc php8.1-zip php-gd -y
  4. Find the file /etc/php/8.1/apache2/php.ini, uncomment and change the parameters in it:

    1short_open_tag = On
    2
    3opcache.revalidate_freq = 0
    4
    5date.timezone = Europe/Moscow
  5. Find the file /etc/apache2/sites-available/000-default.conf and add a fragment to it after DocumentRoot /var/www/html block:

    1<Directory /var/www/html>
    2  AllowOverride All
    3</Directory>
  6. Check the web server configuration for syntax errors:

    apachectl configtest

    If the check is successful, a message like Syntax OK will appear.

  7. Restart the web server with the command:

    sudo systemctl restart apache2
  8. Download the CMS Bitrix repository of the “Start” edition from the official website and unpack it to the web server:

    1cd ~
    2wget https://www.1c-bitrix.ru/download/start_encode.tar.gz
    3sudo rm -rf /var/www/html/*
    4sudo tar xzf start_encode.tar.gz -C /var/www/html/
    5sudo chown -R www-data:www-data /var/www/html/
  9. In the browser, enter the VM's public address (in the current instructions, this is site-bitrix.example.vk.cloud).

  10. In the Installation wizard, start the CMS installation process.

  11. At the “License Agreement” step, accept the terms of the CMS Bitrix license agreement.

  12. At the “Registration” step register the product.

  13. At the “Preliminary check” step, make sure that all the parameters correspond to the required ones (highlighted in green).

  14. At the “Creating a database” step, specify MySQL-1111 parameters:

    • Host: 10.0.0.7.
    • DB user: Existing.
    • DB username: user.
    • DB password: AN0r25e0ae4d626p.
    • Database: Existing.
    • Database name: MySQL-1111.
  15. At the “Product Installation” step, wait for the product to be installed, it may take some time.

  16. In the window that appears specify the administrator credentials.

3. Check the functionality of Bitrix

After specifying the administrator credentials click the Go to website. The CMS Bitrix home page opens.

Delete unused resources

Deployed virtual resources are charged. If you don't need them anymore:

  • Delete Ubuntu_22_04_Bitrix VM.
  • Delete MySQL-1111 instance.
  • If necessary, delete 87.239.105.191 floating IP address.
  • Delete site-bitrix.example.vk.cloud DNS record.