From 988ffc92c8a67aac54797787e4a5a9cc05aa1658 Mon Sep 17 00:00:00 2001 From: James Deathe Date: Sun, 4 Aug 2019 21:02:03 +0100 Subject: [PATCH] #232: dds PHP 5 applicable session settings into service configuration. --- CHANGELOG.md | 4 ++++ Dockerfile | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4875be2..034a0a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ Summary of release changes. +### 2.2.2 - Unreleased + +- Adds PHP 5 applicable session settings into service configuration. + ### 2.2.1 - 2019-07-28 - Updates php-hello-world to [0.13.0](https://github.com/jdeathe/php-hello-world/releases/tag/0.13.0). diff --git a/Dockerfile b/Dockerfile index 28232cb..e8e8a6d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -49,7 +49,8 @@ ADD src / # - Disable all Apache modules and enable the minimum # - Disable the default SSL Virtual Host # - Disable SSL -# - Add default PHP configuration overrides to 00-php.ini drop-in. +# - Add default PHP configuration overrides to 00-php.ini drop-in +# - PHP OPcache configuration # - Replace placeholders with values in systemd service unit template # - Set permissions # ------------------------------------------------------------------------------ @@ -169,6 +170,8 @@ RUN useradd -r -M -d /var/www/app -s /sbin/nologin app \ -e 's~^;?(realpath_cache_size( )?=).*$~\1\24096k~' \ -e 's~^;?(realpath_cache_ttl( )?=).*$~\1\2600~' \ -e 's~^;?(session.cookie_httponly( )?=).*$~\1\21~' \ + -e 's~^;?(session.hash_bits_per_character( )?=).*$~\1\25~' \ + -e 's~^;?(session.hash_function( )?=).*$~\1\2sha256~' \ -e 's~^;?(session.name( )?=).*$~\1\2"${PHP_OPTIONS_SESSION_NAME:-PHPSESSID}"~' \ -e 's~^;?(session.save_handler( )?=).*$~\1\2"${PHP_OPTIONS_SESSION_SAVE_HANDLER:-files}"~' \ -e 's~^;?(session.save_path( )?=).*$~\1\2"${PHP_OPTIONS_SESSION_SAVE_PATH:-/var/lib/php/session}"~' \