From cd4acb371f3ebe02e6ba4b78e80670e5de873700 Mon Sep 17 00:00:00 2001 From: Ivan Chaplygin Date: Fri, 29 Aug 2025 17:35:17 +0300 Subject: [PATCH 1/5] Configure Session Change permissions on main directory --- .github/workflows/ci.yml | 2 +- Makefile | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index df4f4016..9220ac87 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,7 +37,7 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-version }} - ini-values: short_open_tag=On, mbstring.func_overload=2, mbstring.internal_encoding="UTF-8" + ini-values: short_open_tag=On, mbstring.func_overload=2, mbstring.internal_encoding="UTF-8", session.save_path="/tmp" coverage: xdebug - name: Install Bitrix env: diff --git a/Makefile b/Makefile index 9e6a5449..36446333 100755 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ ifneq ($(NOT_USE_VENDOR),1) composer install endif -install_bitrix: download_bitrix +install_bitrix: download_bitrix configure_session @echo "===== Installing Bitrix..." @php bin/bitrix-install db_type @php bin/bitrix-install requirement @@ -30,8 +30,13 @@ ifeq ("$(wildcard $(BITRIX_PATH)/bitrix/php_interface/dbconn.php)","") chmod -R 777 $(BITRIX_PATH) tar -xf /tmp/$(BITRIX_EDITION).tar.gz -C $(BITRIX_PATH) rm /tmp/$(BITRIX_EDITION).tar.gz + chmod -R 777 $(BITRIX_PATH) endif +configure_session: + mkdir -p /tmp + chmod -R 777 /tmp + build_release: ifneq ($(LAST_TAG),$(RELEASE_TAG)) git diff --name-status $(LAST_TAG) HEAD > $(ROOT_DIR)/release/diff From a6050af236b380d0db0352c0f6e355fa2d8c1c64 Mon Sep 17 00:00:00 2001 From: Ivan Chaplygin Date: Fri, 29 Aug 2025 17:50:23 +0300 Subject: [PATCH 2/5] update sessions dir --- .github/workflows/ci.yml | 2 +- Makefile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9220ac87..5ff71bab 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,7 +37,7 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-version }} - ini-values: short_open_tag=On, mbstring.func_overload=2, mbstring.internal_encoding="UTF-8", session.save_path="/tmp" + ini-values: short_open_tag=On, mbstring.func_overload=2, mbstring.internal_encoding="UTF-8", session.save_path="/tmp/php_sessions" coverage: xdebug - name: Install Bitrix env: diff --git a/Makefile b/Makefile index 36446333..9ef65df7 100755 --- a/Makefile +++ b/Makefile @@ -34,8 +34,8 @@ ifeq ("$(wildcard $(BITRIX_PATH)/bitrix/php_interface/dbconn.php)","") endif configure_session: - mkdir -p /tmp - chmod -R 777 /tmp + mkdir -p /tmp/php_sessions + chmod -R 777 /tmp/php_sessions build_release: ifneq ($(LAST_TAG),$(RELEASE_TAG)) From ffb5b040e1d96946c8b3b8b28ab768ca21096767 Mon Sep 17 00:00:00 2001 From: Ivan Chaplygin Date: Fri, 29 Aug 2025 17:58:51 +0300 Subject: [PATCH 3/5] update permission rules for session directory --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 9ef65df7..c5830ee4 100755 --- a/Makefile +++ b/Makefile @@ -36,6 +36,8 @@ endif configure_session: mkdir -p /tmp/php_sessions chmod -R 777 /tmp/php_sessions + chmod g+s /tmp/php_sessions + build_release: ifneq ($(LAST_TAG),$(RELEASE_TAG)) From 74273d60b39f34ba563b46279a96d237a691414b Mon Sep 17 00:00:00 2001 From: Ivan Chaplygin Date: Fri, 29 Aug 2025 18:01:55 +0300 Subject: [PATCH 4/5] dev operations --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index c5830ee4..585139ed 100755 --- a/Makefile +++ b/Makefile @@ -31,11 +31,14 @@ ifeq ("$(wildcard $(BITRIX_PATH)/bitrix/php_interface/dbconn.php)","") tar -xf /tmp/$(BITRIX_EDITION).tar.gz -C $(BITRIX_PATH) rm /tmp/$(BITRIX_EDITION).tar.gz chmod -R 777 $(BITRIX_PATH) + ls -al endif configure_session: + ls -al / mkdir -p /tmp/php_sessions chmod -R 777 /tmp/php_sessions + sudo chown -R www-data:www-data /tmp/php_sessions chmod g+s /tmp/php_sessions From bd1e8e029524c0d4ab24c1b74f674d9c05d43e3d Mon Sep 17 00:00:00 2001 From: Ivan Chaplygin Date: Fri, 29 Aug 2025 18:05:29 +0300 Subject: [PATCH 5/5] dev operations --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 585139ed..97353229 100755 --- a/Makefile +++ b/Makefile @@ -38,8 +38,8 @@ configure_session: ls -al / mkdir -p /tmp/php_sessions chmod -R 777 /tmp/php_sessions - sudo chown -R www-data:www-data /tmp/php_sessions chmod g+s /tmp/php_sessions + sudo chown -R www-data:www-data /tmp/php_sessions build_release: