We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b9ba7e commit 99e0cfeCopy full SHA for 99e0cfe
1 file changed
bin/bitrix-install
@@ -9,6 +9,18 @@ if (ini_get('memory_limit') > 0 && (int)ini_get('memory_limit') < 784) {
9
10
$_SERVER['DOCUMENT_ROOT'] = getenv('BITRIX_PATH') ? getenv('BITRIX_PATH') : '/var/www/html';
11
12
+$sessionPath = $_SERVER['DOCUMENT_ROOT'] . '/.tmp/sessions';
13
+
14
+if (!is_dir($sessionPath) && !mkdir($sessionPath, 0777, true) && !is_dir($sessionPath)) {
15
+ throw new \RuntimeException(sprintf('Unable to create session directory: %s', $sessionPath));
16
+}
17
18
+if (!is_writable($sessionPath)) {
19
+ throw new \RuntimeException(sprintf('Session directory is not writable: %s', $sessionPath));
20
21
22
+ini_set('session.save_path', $sessionPath);
23
24
define("B_PROLOG_INCLUDED", true);
25
define("DEBUG_MODE", true);
26
0 commit comments