LuckyBX Русский
Server

PHP

A server can have several PHP versions, each site has its own.

luckybx php list
luckybx php add 8.3
luckybx site php shop.example.com 8.3

LuckyBX installs PHP 8.2, 8.3, 8.4, 8.5 and 8.6. The default is 8.4, all LuckyBX tests ran on it.

PHP 8.6 came out in November 2026. Bitrix has not announced support for it yet. A Bitrix24 portal has been tested on it: pages, the admin area, cron, search and the "System check" work the same as on 8.4. On Ubuntu it is not in the list yet: the redis extension is not built for it. When it is built, the version appears in the list by itself.

PHP menu
PHP menu

Extensions#

Everything Bitrix needs is already installed. These can be turned on in addition:

luckybx php ext 8.4 imagick on

What is set up#

How much memory goes to compiled PHP code and how many processes to keep is decided by autotuning.

Your own settings for a site#

Create a .user.ini file in the site root and write what you want to change:

memory_limit = 768M

The changes are picked up by themselves in a few minutes. LuckyBX does not touch this file, and it is not visible from outside.

Page run time cannot be raised this way: nginx stops the page after 300 seconds. Run long jobs through cron.

Why PHAR is off#

The Bitrix security scanner asks for it. The portal and the update check work without it. If a third-party library or composer needs it, turn it on:

luckybx php ext 8.4 phar on