LuckyBX Русский
Start

Installation

LuckyBX installs on a clean server: the installer overwrites nginx, PHP and database settings.

Requirements#

How long the Bitrix wizard takes depends on where the server is: the wizard downloads hundreds of updates from Bitrix servers in Russia. A portal took 12 minutes to install on a server in Russia and 1 hour 35 minutes on a server abroad.

Running it#

As root on the server:

curl -fsSL https://raw.githubusercontent.com/Leden4ik/LuckyBX/main/get.sh | sudo bash

The command downloads the latest release from GitHub, checks its signature and checksum, unpacks it to /root/luckybx-VERSION and runs ./install.sh from there. If the signature does not match, nothing gets installed.

By hand: download luckybx-VERSION.tar.gz from the releases page, unpack it and run ./install.sh inside.

First the installer asks for the language: English or Russian. Then it asks six questions:

  1. What the server is for: a site, a Bitrix24 portal or your own set of programs.
  2. Which PHP version is the main one. Others can be added later.
  3. Which database: MariaDB 11.8 or Percona Server 8.4. It cannot be changed later.
  4. Time zone.
  5. Which components are needed.
  6. Whether to create the first site right away.
The installer's first question
The installer's first question

At any step 0 goes back. At the end the installer shows the plan and starts working only after you confirm.

If the installation stopped#

Fix the cause and run ./install.sh again in /root/luckybx-VERSION. It continues from where it stopped. Error details are in /var/log/luckybx/luckybx.log.

Installation without questions#

./install.sh --unattended --site shop.example.com --distro business

The same through get.sh: curl -fsSL https://raw.githubusercontent.com/Leden4ik/LuckyBX/main/get.sh | sudo bash -s -- --unattended --site shop.example.com --distro business

The answers can be put in a file and passed with the --config key:

LBX_PHP="8.4"
LBX_DB="mariadb"
LBX_TZ="Europe/Berlin"
LBX_PUSH="y"
LBX_MAIL="y"
LBX_FIREWALL="y"
LBX_SWAP="y"
LBX_LANG="en"

A missing line takes the default value. LBX_LANG sets the language: en or ru.

./install.sh --unattended --config answers.conf

Show the plan and do nothing:

./install.sh --dry-run

Repeat one stage#

If you need to install one thing again, look at the list of stages and run the one you need:

./install.sh --list
./install.sh --only push

SELinux#

On AlmaLinux, Rocky and CentOS the enforcing mode is not supported yet. If it is on, the installer offers to switch it to permissive. In an installation without questions this happens only if the answers file has the line LBX_SELINUX=permissive.

What next#

Go to the quick start.