You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 2, 2024. It is now read-only.
- Fixes issue with app specific `httpd` configuration requiring the `etc/php.d` directory to exist.
13
+
- Adds default Apache modules appropriate for Apache 2.4/2.2 in the bootstrap script for the unlikely case where the values in the environment and configuration file defaults are both unset.
14
+
- Updates `README.md` with details of the SCMI install example's prerequisite step of either pulling or loading the image.
15
+
- Updates `httpd` and `mod_ssl` packages.
16
+
- Fixes noisy certificate generation output in logs during bootstrap when `APACHE_MOD_SSL_ENABLED` is `true`.
17
+
- Changes `APACHE_SERVER_ALIAS` to a default empty value for `Makefile`, `scmi` and `systemd` templates which is the existing `Dockerfile` default.
18
+
- Changes default `APACHE_SERVER_NAME` to unset and use the container's hostname for the Apache ServerName.
19
+
- Fixes `scmi` install/uninstall examples and Dockerfile `LABEL` install/uninstall templates to prevent the `X-Service-UID` header being populated with the hostname of the ephemeral container used to run `scmi`.
20
+
- Adds feature to allow both `APACHE_SERVER_NAME` and `APACHE_SERVER_ALIAS` to contain the `{{HOSTNAME}}` placeholder which is replaced on startup with the container's hostname.
21
+
- Removes environment variable re-mappings that are no longer in use: `APP_HOME_DIR`, `APACHE_SUEXEC_USER_GROUP`, `DATE_TIMEZONE`, `SERVICE_USER`, `SUEXECUSERGROUP`, `SERVICE_UID`.
22
+
- Changes Apache configuration so that `NameVirtualHost` and `Listen` are separated out from `VirtualHost`.
23
+
- Adds further information on the use of `watch` to monitor `server-status`.
24
+
- Changes the auto-generated self-signed certificate to include hosts from `APACHE_SERVER_NAME` and `APACHE_SERVER_ALIAS` via subjectAltName.
25
+
9
26
### 1.8.1 - 2017-01-29
10
27
11
28
- Updates image source to release 1.8.2 including required Makefile and environment changes.
Copy file name to clipboardExpand all lines: README.md
+32-18Lines changed: 32 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,9 +7,9 @@ Apache PHP web server, loading only a minimal set of Apache modules by default.
7
7
8
8
## Overview & links
9
9
10
-
The latest CentOS-6 based release can be pulled from the centos-6 Docker tag. For a specific release tag the convention is `centos-6-1.8.1` or `1.8.1` for the [1.8.1](https://github.com/jdeathe/centos-ssh-apache-php-fcgi/tree/1.7.0) release tag.
10
+
The latest CentOS-6 based release can be pulled from the centos-6 Docker tag. For a specific release tag the convention is `centos-6-1.9.0` or `1.9.0` for the [1.9.0](https://github.com/jdeathe/centos-ssh-apache-php-fcgi/tree/1.7.0) release tag.
This build of [Apache](https://httpd.apache.org/), (httpd CentOS package), uses the [mod_fcgid](https://httpd.apache.org/mod_fcgid/) module to run [PHP](http://php.net/) as a [FastCGI](http://www.fastcgi.com/) process.
15
15
@@ -85,10 +85,12 @@ $ docker run \
85
85
--rm \
86
86
--privileged \
87
87
--volume /:/media/root \
88
-
jdeathe/centos-ssh-apache-php-fcgi:1.8.1 \
88
+
--env BASH_ENV="" \
89
+
--env ENV="" \
90
+
jdeathe/centos-ssh-apache-php-fcgi:1.9.0 \
89
91
/usr/sbin/scmi install \
90
92
--chroot=/media/root \
91
-
--tag=1.8.1 \
93
+
--tag=1.9.0 \
92
94
--name=apache-php.pool-1.1.1
93
95
```
94
96
@@ -101,10 +103,12 @@ $ docker run \
101
103
--rm \
102
104
--privileged \
103
105
--volume /:/media/root \
104
-
jdeathe/centos-ssh-apache-php-fcgi:1.8.1 \
106
+
--env BASH_ENV="" \
107
+
--env ENV="" \
108
+
jdeathe/centos-ssh-apache-php-fcgi:1.9.0 \
105
109
/usr/sbin/scmi uninstall \
106
110
--chroot=/media/root \
107
-
--tag=1.8.1 \
111
+
--tag=1.9.0 \
108
112
--name=apache-php.pool-1.1.1
109
113
```
110
114
@@ -117,10 +121,12 @@ $ docker run \
117
121
--rm \
118
122
--privileged \
119
123
--volume /:/media/root \
120
-
jdeathe/centos-ssh-apache-php-fcgi:1.8.1 \
124
+
--env BASH_ENV="" \
125
+
--env ENV="" \
126
+
jdeathe/centos-ssh-apache-php-fcgi:1.9.0 \
121
127
/usr/sbin/scmi install \
122
128
--chroot=/media/root \
123
-
--tag=1.8.1 \
129
+
--tag=1.9.0 \
124
130
--name=apache-php.pool-1.1.1 \
125
131
--manager=systemd \
126
132
--register \
@@ -142,7 +148,7 @@ To see detailed information about the image run `scmi` with the `--info` option.
142
148
$ eval "sudo -E $(
143
149
docker inspect \
144
150
-f "{{.ContainerConfig.Labels.install}}" \
145
-
jdeathe/centos-ssh-apache-php-fcgi:1.8.1
151
+
jdeathe/centos-ssh-apache-php-fcgi:1.9.0
146
152
) --info"
147
153
```
148
154
@@ -152,7 +158,7 @@ To perform an installation using the docker name `apache-php.pool-1.2.1` simply
152
158
$ eval "sudo -E $(
153
159
docker inspect \
154
160
-f "{{.ContainerConfig.Labels.install}}" \
155
-
jdeathe/centos-ssh-apache-php-fcgi:1.8.1
161
+
jdeathe/centos-ssh-apache-php-fcgi:1.9.0
156
162
) --name=apache-php.pool-1.2.1"
157
163
```
158
164
@@ -162,20 +168,26 @@ To uninstall use the *same command* that was used to install but with the `unins
162
168
$ eval "sudo -E $(
163
169
docker inspect \
164
170
-f "{{.ContainerConfig.Labels.uninstall}}" \
165
-
jdeathe/centos-ssh-apache-php-fcgi:1.8.1
171
+
jdeathe/centos-ssh-apache-php-fcgi:1.9.0
166
172
) --name=apache-php.pool-1.2.1"
167
173
```
168
174
169
175
##### SCMI on Atomic Host
170
176
171
177
With the addition of install/uninstall image labels it is possible to use [Project Atomic's](http://www.projectatomic.io/)`atomic install` command to simplify install/uninstall tasks on [CentOS Atomic](https://wiki.centos.org/SpecialInterestGroup/Atomic) Hosts.
172
178
179
+
_NOTE:_ A prerequisite of the following examples is that the image has been pulled (or loaded from the release package).
To see detailed information about the image run `scmi` with the `--info` option. To see all available `scmi` options run with the `--help` option.
174
186
175
187
```
176
188
$ sudo -E atomic install \
177
189
-n apache-php.pool-1.3.1 \
178
-
jdeathe/centos-ssh-apache-php-fcgi:1.8.1 \
190
+
jdeathe/centos-ssh-apache-php-fcgi:1.9.0 \
179
191
--info
180
192
```
181
193
@@ -184,14 +196,14 @@ To perform an installation using the docker name `apache-php.pool-1.3.1` simply
184
196
```
185
197
$ sudo -E atomic install \
186
198
-n apache-php.pool-1.3.1 \
187
-
jdeathe/centos-ssh-apache-php-fcgi:1.8.1
199
+
jdeathe/centos-ssh-apache-php-fcgi:1.9.0
188
200
```
189
201
190
202
Alternatively, you could use the `scmi` options `--name` or `-n` for naming the container.
191
203
192
204
```
193
205
$ sudo -E atomic install \
194
-
jdeathe/centos-ssh-apache-php-fcgi:1.8.1 \
206
+
jdeathe/centos-ssh-apache-php-fcgi:1.9.0 \
195
207
--name apache-php.pool-1.3.1
196
208
```
197
209
@@ -200,14 +212,16 @@ To uninstall use the *same command* that was used to install but with the `unins
200
212
```
201
213
$ sudo -E atomic uninstall \
202
214
-n apache-php.pool-1.3.1 \
203
-
jdeathe/centos-ssh-apache-php-fcgi:1.8.1
215
+
jdeathe/centos-ssh-apache-php-fcgi:1.9.0
204
216
```
205
217
206
218
#### Environment Variables
207
219
208
220
##### APACHE_SERVER_NAME & APACHE_SERVER_ALIAS
209
221
210
-
The `APACHE_SERVER_NAME` and `APACHE_SERVER_ALIAS` environmental variables are used to set the VirtualHost `ServerName` and `ServerAlias` values respectively. In the following example the running container would respond to the host names `app-1.local` or `app-1`:
222
+
The `APACHE_SERVER_NAME` and `APACHE_SERVER_ALIAS` environmental variables are used to set the VirtualHost `ServerName` and `ServerAlias` values respectively. If the value contains the placeholder `{{HOSTNAME}}` it will be replaced with the system `hostname` value; by default this is the container id but the hostname can be modified using the `--hostname` docker create|run parameter.
223
+
224
+
In the following example the running container would respond to the host names `app-1.local` or `app-1`.
211
225
212
226
```
213
227
...
@@ -260,13 +274,13 @@ The variable `APACHE_EXTENDED_STATUS_ENABLED` allows you to turn ExtendedStatus
260
274
...
261
275
```
262
276
263
-
You can view the output from Apache server-status either using the elinks browser from onboard the container or by using `watch` and `curl` to monitor status over time - the following command shows the server-status updated at a 1 second interval.
277
+
You can view the output from Apache server-status either using the elinks browser from onboard the container or by using `watch` and `curl` to monitor status over time. The following command shows the server-status updated at a 1 second interval given an `APACHE_SERVER_NAME` or `APACHE_SERVER_ALIAS` of "app-1.local".
0 commit comments