How to enable PHP 7 for CMS Bitrix

You can switch to PHP 7 on the site with CMS Bitrix by following this instruction.

1. Enable PHP 7 version in control panel settings.

2. Open the file:


3. Add the line to this file:

define("BX_USE_MYSQLI", true);

4. Open the file: 


5. Find the line:

'className' => '\\Bitrix\\Main\\DB\\MysqliConnection',

6. Replace MysqlConnection with MysqliConnection

If you have any questions, please create a ticket to technical support.