Views: 4484
Last Modified: 22.03.2021

This installation version has centralized configuration storage: -- /etc/php7/conf.d

It requires such settings as a minimum:

  • for the module OPCache (opcache.ini):
  • opcache.max_accelerated_files = 100000
    opcache.revalidate_freq = 0
  • add settings into file zx-bitrix.ini:
  • display_errors = Off
    error_reporting = E_ALL
    error_log = '/var/log/php/error.log'
    ; Set some more PHP parameters
    enable_dl = Off
    short_open_tag = On
    allow_url_fopen = On
    # Security headers
    mail.add_x_header = Off
    expose_php = Off

All configuration files can be downloaded in archive . Config files for PHP are located in the folder as follows: sles15/php.d.

Place them in the directory /etc/php7/conf.d/.

Set user as the owner and the group root:

chown root:root /etc/php7/conf.d/ -R

Courses developed by Bitrix24