Created
May 16, 2017 21:03
-
-
Save gdecider/90e61867887e2671675878f0f96a5bb9 to your computer and use it in GitHub Desktop.
Битрикс пример настроек для нового и старого ядра
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return array ( | |
'utf_mode' => | |
array ( | |
'value' => true, | |
'readonly' => true, | |
), | |
'cache_flags' => | |
array ( | |
'value' => | |
array ( | |
'config_options' => 3600, | |
'site_domain' => 3600, | |
), | |
'readonly' => false, | |
), | |
'cookies' => | |
array ( | |
'value' => | |
array ( | |
'secure' => false, | |
'http_only' => true, | |
), | |
'readonly' => false, | |
), | |
'exception_handling' => | |
array ( | |
'value' => | |
array ( | |
'debug' => true, | |
'handled_errors_types' => 4437, | |
'exception_errors_types' => 4437, | |
'ignore_silence' => false, | |
'assertion_throws_exception' => true, | |
'assertion_error_type' => 256, | |
'log' => NULL, | |
), | |
'readonly' => false, | |
), | |
'connections' => | |
array ( | |
'value' => | |
array ( | |
'default' => | |
array ( | |
'className' => '\\Bitrix\\Main\\DB\\MysqliConnection', | |
'host' => 'localhost', | |
'database' => 'dbname', | |
'login' => 'dbuser', | |
'password' => 'dbpass', | |
'options' => 2, | |
), | |
), | |
'readonly' => true, | |
), | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
define("BX_USE_MYSQLI", true); | |
define("DBPersistent", false); | |
$DBType = "mysql"; | |
$DBHost = "localhost"; | |
$DBLogin = "dbuser"; | |
$DBPassword = "dbpass"; | |
$DBName = "dbname"; | |
$DBDebug = false; | |
$DBDebugToFile = false; | |
define("MYSQL_TABLE_TYPE", "INNODB"); | |
define("DELAY_DB_CONNECT", true); | |
define("CACHED_b_file", 3600); | |
define("CACHED_b_file_bucket_size", 10); | |
define("CACHED_b_lang", 3600); | |
define("CACHED_b_option", 3600); | |
define("CACHED_b_lang_domain", 3600); | |
define("CACHED_b_site_template", 3600); | |
define("CACHED_b_event", 3600); | |
define("CACHED_b_agent", 3660); | |
define("CACHED_menu", 3600); | |
define("BX_UTF", true); | |
define("BX_FILE_PERMISSIONS", 0664); | |
define("BX_DIR_PERMISSIONS", 0775); | |
@umask(~BX_DIR_PERMISSIONS); | |
@ini_set("memory_limit", "512M"); | |
define("BX_DISABLE_INDEX_PAGE", true); | |
@ini_set("display_errors", "Off"); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment