Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.

Commit 3f73eaf

Browse files
authoredAug 4, 2019
Merge pull request #244 from jdeathe/centos-6-develop
Release changes for 1.13.2
2 parents 63722df + ba8ece7 commit 3f73eaf

File tree

4 files changed

+26
-8
lines changed

4 files changed

+26
-8
lines changed
 

‎CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44

55
Summary of release changes.
66

7+
### 1.13.2 - 2019-08-05
8+
9+
- Updates php-hello-world to [0.14.0](https://github.com/jdeathe/php-hello-world/releases/tag/0.14.0).
10+
- Adds PHP 5 applicable session settings into service configuration.
11+
- Adds configuration file replacement of placeholders for Xdebug's `DBGP_IDEKEY`.
12+
713
### 1.13.1 - 2019-07-28
814

915
- Updates php-hello-world to [0.13.0](https://github.com/jdeathe/php-hello-world/releases/tag/0.13.0).

‎Dockerfile

+5-3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ FROM jdeathe/centos-ssh:1.11.0
33
# Use the form ([{fqdn}-]{package-name}|[{fqdn}-]{provider-name})
44
ARG PACKAGE_NAME="app"
55
ARG PACKAGE_PATH="/opt/${PACKAGE_NAME}"
6-
ARG PACKAGE_RELEASE_VERSION="0.13.0"
7-
ARG RELEASE_VERSION="1.13.1"
6+
ARG PACKAGE_RELEASE_VERSION="0.14.0"
7+
ARG RELEASE_VERSION="1.13.2"
88

99
# ------------------------------------------------------------------------------
1010
# Base install of required packages
@@ -49,7 +49,7 @@ ADD src /
4949
# - Disable Apache default fcgid configuration; replaced with 00-fcgid.conf
5050
# - Disable the default SSL Virtual Host
5151
# - Disable SSL
52-
# - Add default PHP configuration overrides to 00-php.ini drop-in.
52+
# - Add default PHP configuration overrides to 00-php.ini drop-in
5353
# - APC configuration
5454
# - Replace placeholders with values in systemd service unit template
5555
# - Set permissions
@@ -159,6 +159,8 @@ RUN useradd -r -M -d /var/www/app -s /sbin/nologin app \
159159
-e 's~^;?(realpath_cache_size( )?=).*$~\1\24096k~' \
160160
-e 's~^;?(realpath_cache_ttl( )?=).*$~\1\2600~' \
161161
-e 's~^;?(session.cookie_httponly( )?=).*$~\1\21~' \
162+
-e 's~^;?(session.hash_bits_per_character( )?=).*$~\1\25~' \
163+
-e 's~^;?(session.hash_function( )?=).*$~\1\2sha256~' \
162164
-e 's~^;?(session.name( )?=).*$~\1\2"${PHP_OPTIONS_SESSION_NAME:-PHPSESSID}"~' \
163165
-e 's~^;?(session.save_handler( )?=).*$~\1\2"${PHP_OPTIONS_SESSION_SAVE_HANDLER:-files}"~' \
164166
-e 's~^;?(session.save_path( )?=).*$~\1\2"${PHP_OPTIONS_SESSION_SAVE_PATH:-/var/lib/php/session}"~' \

‎README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
### Tags and respective `Dockerfile` links
22

3-
- `centos-7`, `2.2.1` [(centos-7/Dockerfile)](https://github.com/jdeathe/centos-ssh-apache-php-fcgi/blob/centos-7/Dockerfile)
4-
- `centos-6`, `1.13.1` [(centos-6/Dockerfile)](https://github.com/jdeathe/centos-ssh-apache-php-fcgi/blob/centos-6/Dockerfile)
3+
- `centos-7`, `2.2.2` [(centos-7/Dockerfile)](https://github.com/jdeathe/centos-ssh-apache-php-fcgi/blob/centos-7/Dockerfile)
4+
- `centos-6`, `1.13.2` [(centos-6/Dockerfile)](https://github.com/jdeathe/centos-ssh-apache-php-fcgi/blob/centos-6/Dockerfile)
55

66
## Overview
77

@@ -25,7 +25,7 @@ $ docker run -d \
2525
--name apache-php.1 \
2626
-p 8080:80 \
2727
-e "APACHE_SERVER_NAME=app-1.local" \
28-
jdeathe/centos-ssh-apache-php-fcgi:2.2.1
28+
jdeathe/centos-ssh-apache-php-fcgi:2.2.2
2929
```
3030

3131
Go to `http://{{docker-host}}:8080` using a browser where `{{docker-host}}` is the host name of your docker server and, if all went well, you should see the "Hello, world!" page.
@@ -90,7 +90,7 @@ $ docker stop apache-php.1 && \
9090
--env "APACHE_SERVER_NAME=app-1.local" \
9191
--env "APACHE_SSL_PROTOCOL=All -SSLv2 -SSLv3 -TLSv1 -TLSv1.1" \
9292
--env "PHP_OPTIONS_DATE_TIMEZONE=Europe/London" \
93-
jdeathe/centos-ssh-apache-php-fcgi:2.2.1
93+
jdeathe/centos-ssh-apache-php-fcgi:2.2.2
9494
```
9595

9696
#### Environment Variables
@@ -204,7 +204,7 @@ $ docker stop apache-php.1 && \
204204
--env "APACHE_SERVER_ALIAS=app-1" \
205205
--env "APACHE_SERVER_NAME=app-1.local" \
206206
--env "APACHE_MOD_SSL_ENABLED=true" \
207-
jdeathe/centos-ssh-apache-php-fcgi:2.2.1
207+
jdeathe/centos-ssh-apache-php-fcgi:2.2.2
208208
```
209209

210210
##### APACHE_MPM

‎src/usr/sbin/httpd-bootstrap

+10
Original file line numberDiff line numberDiff line change
@@ -686,6 +686,11 @@ function __get_apache_server_version ()
686686
printf -- '%s' "${semantic_version}"
687687
}
688688

689+
function __get_dbgp_idekey ()
690+
{
691+
printf -- '%s' "${DBGP_IDEKEY}"
692+
}
693+
689694
function __get_details_ssl_certificate_fingerprint ()
690695
{
691696
local -r digest="${1:-sha1}"
@@ -1719,6 +1724,7 @@ function main ()
17191724
local apache_ssl_protocol
17201725
local apache_system_user
17211726
local config_files
1727+
local dbgp_idekey
17221728
local details_modules_enabled_list
17231729
local details_ssl_certificate_fingerprint
17241730
local document_root
@@ -1815,6 +1821,9 @@ function main ()
18151821
apache_system_user="$(
18161822
__get_apache_system_user
18171823
)"
1824+
dbgp_idekey="$(
1825+
__get_dbgp_idekey
1826+
)"
18181827
php_options_date_timezone="$(
18191828
__get_php_options_date_timezone
18201829
)"
@@ -1966,6 +1975,7 @@ function main ()
19661975
-e "s~(\\$\{|\{\{)APACHE_SSL_CIPHER_SUITE(\}\}|(:-.+)?\})~${apache_ssl_cipher_suite}~g" \
19671976
-e "s~(\\$\{|\{\{)APACHE_SSL_PROTOCOL(\}\}|(:-.+)?\})~${apache_ssl_protocol}~g" \
19681977
-e "s~(\\$\{|\{\{)APACHE_SYSTEM_USER(\}\}|(:-.+)?\})~${apache_system_user}~g" \
1978+
-e "s~(\\$\{|\{\{)DBGP_IDEKEY(\}\}|(:-.+)?\})~${dbgp_idekey}~g" \
19691979
-e "s~(\\$\{|\{\{)PACKAGE_PATH(\}\}|(:-.+)?\})~${package_path}~g" \
19701980
-e "s~(\\$\{|\{\{)PHP_OPTIONS_DATE_TIMEZONE(\}\}|(:-.+)?\})~${php_options_date_timezone}~g" \
19711981
-e "s~(\\$\{|\{\{)PHP_OPTIONS_SESSION_NAME(\}\}|(:-.+)?\})~${php_options_session_name}~g" \

0 commit comments

Comments
 (0)