programming:1c-bitrix:best-config
Оптимальная конфигурация
Php.ini
allow_call_time_pass_reference = On ;bitrix-env max_execution_time = 300 ;bitrix-env error_reporting = E_ALL & ~E_NOTICE ;bitrix-env display_errors = On ;bitrix-env post_max_size = 1024M ;bitrix-env enable_dl = Off ;bitrix-env upload_max_filesize = 1024M ;bitrix-env ;define_syslog_variables = 1 ;bitrix-env mbstring.func_overload = 2 ;bitrix-env mbstring.internal_encoding = UTF-8 ;bitrix-env extension=geoip.so ;bitrix-env ;extension=xdebug.so ;bitrix-env mysql.default_socket = /var/lib/mysqld/mysqld.sock ;bitrix-env sendmail_path = msmtp -t -i ;bitrix-env session.save_path = "/tmp" ;bitrix-env realpath_cache_size = 4096k ;bitrix-env max_file_uploads = 100 ;bitrix-env date.timezone = Europe/Moscow
My.cnf
# # The MySQL database server configuration file. # [client] port = 3306 socket = /var/lib/mysqld/mysqld.sock default-character-set=utf8 [mysqld_safe] socket = /var/lib/mysqld/mysqld.sock nice = 0 [mysqld] user = mysql pid-file = /var/run/mysqld/mysqld.pid socket = /var/lib/mysqld/mysqld.sock port = 3306 basedir = /usr datadir = /var/lib/mysql tmpdir = /tmp skip-external-locking query_cache_size = 32M table_cache = 4096 thread_cache_size = 32 max_heap_table_size = 32M tmp_table_size = 32M innodb_buffer_pool_size = 32M innodb_flush_log_at_trx_commit = 2 innodb_flush_method = O_DIRECT transaction-isolation = READ-COMMITTED default-storage-engine = innodb bind-address = 127.0.0.1 key_buffer = 16M max_allowed_packet = 16M thread_stack = 128K myisam-recover = BACKUP expire_logs_days = 10 max_binlog_size = 100M join_buffer_size = 1M default-character-set = utf8 character-set-server = utf8 collation-server = utf8_general_ci init-connect = "SET NAMES utf8" skip-character-set-client-handshake [mysqldump] quick quote-names max_allowed_packet = 16M default-character-set = utf8 [mysql] [isamchk] key_buffer = 16M !includedir /etc/mysql/conf.d/
Crontab
SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root HOME=/ # run-parts 01 * * * * root run-parts /etc/cron.hourly 02 4 * * * root run-parts /etc/cron.daily 22 4 * * 0 root run-parts /etc/cron.weekly 42 4 1 * * root run-parts /etc/cron.monthly * * * * * bitrix test -f /home/bitrix/www/bitrix/modules/main/tools/cron_events.php && { export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/zend/lib/:/usr/local/zend/lib/php_extensions/ ; export LD_LIBRARY_PATH=:/usr/local/zend/lib/ ; /usr/bin/php -f /home/bitrix/www/bitrix/modules/main/tools/cron_events.php ; } >/dev/null 2>&1 * * * * * root /root/xmppd.sh * * * * * root /root/smtpd.sh
programming/1c-bitrix/best-config.txt · Последнее изменение: 2017/03/27 11:26 — artur