Skip to content

Commit e09f731

Browse files
committed
Merge #324 - Add expose_php env back
It was broken in #320 implementation
2 parents bd7de17 + d383a98 commit e09f731

9 files changed

+25
-10
lines changed

Dockerfile-alpine.template

+1-2
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ RUN set -ex; \
3838

3939
# set recommended PHP.ini settings
4040
# see https://secure.php.net/manual/en/opcache.installation.php
41+
ENV MAX_EXECUTION_TIME 600
4142
ENV MEMORY_LIMIT 512M
4243
ENV UPLOAD_LIMIT 2048K
43-
ENV MAX_EXECUTION_TIME 600
4444
RUN set -ex; \
4545
\
4646
{ \
@@ -58,7 +58,6 @@ RUN set -ex; \
5858
\
5959
{ \
6060
echo 'allow_url_fopen=Off'; \
61-
echo 'expose_php=Off'; \
6261
echo 'max_execution_time=${MAX_EXECUTION_TIME}'; \
6362
echo 'max_input_vars=10000'; \
6463
echo 'memory_limit=${MEMORY_LIMIT}'; \

Dockerfile-debian.template

+1-2
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ RUN set -ex; \
4040

4141
# set recommended PHP.ini settings
4242
# see https://secure.php.net/manual/en/opcache.installation.php
43+
ENV MAX_EXECUTION_TIME 600
4344
ENV MEMORY_LIMIT 512M
4445
ENV UPLOAD_LIMIT 2048K
45-
ENV MAX_EXECUTION_TIME 600
4646
RUN set -ex; \
4747
\
4848
{ \
@@ -60,7 +60,6 @@ RUN set -ex; \
6060
\
6161
{ \
6262
echo 'allow_url_fopen=Off'; \
63-
echo 'expose_php=Off'; \
6463
echo 'max_execution_time=${MAX_EXECUTION_TIME}'; \
6564
echo 'max_input_vars=10000'; \
6665
echo 'memory_limit=${MEMORY_LIMIT}'; \

apache/Dockerfile

+1-2
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ RUN set -ex; \
4040

4141
# set recommended PHP.ini settings
4242
# see https://secure.php.net/manual/en/opcache.installation.php
43+
ENV MAX_EXECUTION_TIME 600
4344
ENV MEMORY_LIMIT 512M
4445
ENV UPLOAD_LIMIT 2048K
45-
ENV MAX_EXECUTION_TIME 600
4646
RUN set -ex; \
4747
\
4848
{ \
@@ -60,7 +60,6 @@ RUN set -ex; \
6060
\
6161
{ \
6262
echo 'allow_url_fopen=Off'; \
63-
echo 'expose_php=Off'; \
6463
echo 'max_execution_time=${MAX_EXECUTION_TIME}'; \
6564
echo 'max_input_vars=10000'; \
6665
echo 'memory_limit=${MEMORY_LIMIT}'; \

apache/docker-entrypoint.sh

+5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ EOT
1313
fi
1414
fi
1515

16+
if [ ! -z "${HIDE_PHP_VERSION}" ]; then
17+
echo "PHP version is now hidden."
18+
echo -e 'expose_php = Off\n' > $PHP_INI_DIR/conf.d/phpmyadmin-hide-php-version.ini
19+
fi
20+
1621
if [ ! -z "${PMA_CONFIG_BASE64}" ]; then
1722
echo "Adding the custom config.inc.php from base64."
1823
echo "${PMA_CONFIG_BASE64}" | base64 -d > /etc/phpmyadmin/config.inc.php

docker-entrypoint.sh

+5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ EOT
1313
fi
1414
fi
1515

16+
if [ ! -z "${HIDE_PHP_VERSION}" ]; then
17+
echo "PHP version is now hidden."
18+
echo -e 'expose_php = Off\n' > $PHP_INI_DIR/conf.d/phpmyadmin-hide-php-version.ini
19+
fi
20+
1621
if [ ! -z "${PMA_CONFIG_BASE64}" ]; then
1722
echo "Adding the custom config.inc.php from base64."
1823
echo "${PMA_CONFIG_BASE64}" | base64 -d > /etc/phpmyadmin/config.inc.php

fpm-alpine/Dockerfile

+1-2
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ RUN set -ex; \
3838

3939
# set recommended PHP.ini settings
4040
# see https://secure.php.net/manual/en/opcache.installation.php
41+
ENV MAX_EXECUTION_TIME 600
4142
ENV MEMORY_LIMIT 512M
4243
ENV UPLOAD_LIMIT 2048K
43-
ENV MAX_EXECUTION_TIME 600
4444
RUN set -ex; \
4545
\
4646
{ \
@@ -58,7 +58,6 @@ RUN set -ex; \
5858
\
5959
{ \
6060
echo 'allow_url_fopen=Off'; \
61-
echo 'expose_php=Off'; \
6261
echo 'max_execution_time=${MAX_EXECUTION_TIME}'; \
6362
echo 'max_input_vars=10000'; \
6463
echo 'memory_limit=${MEMORY_LIMIT}'; \

fpm-alpine/docker-entrypoint.sh

+5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ EOT
1313
fi
1414
fi
1515

16+
if [ ! -z "${HIDE_PHP_VERSION}" ]; then
17+
echo "PHP version is now hidden."
18+
echo -e 'expose_php = Off\n' > $PHP_INI_DIR/conf.d/phpmyadmin-hide-php-version.ini
19+
fi
20+
1621
if [ ! -z "${PMA_CONFIG_BASE64}" ]; then
1722
echo "Adding the custom config.inc.php from base64."
1823
echo "${PMA_CONFIG_BASE64}" | base64 -d > /etc/phpmyadmin/config.inc.php

fpm/Dockerfile

+1-2
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ RUN set -ex; \
4040

4141
# set recommended PHP.ini settings
4242
# see https://secure.php.net/manual/en/opcache.installation.php
43+
ENV MAX_EXECUTION_TIME 600
4344
ENV MEMORY_LIMIT 512M
4445
ENV UPLOAD_LIMIT 2048K
45-
ENV MAX_EXECUTION_TIME 600
4646
RUN set -ex; \
4747
\
4848
{ \
@@ -60,7 +60,6 @@ RUN set -ex; \
6060
\
6161
{ \
6262
echo 'allow_url_fopen=Off'; \
63-
echo 'expose_php=Off'; \
6463
echo 'max_execution_time=${MAX_EXECUTION_TIME}'; \
6564
echo 'max_input_vars=10000'; \
6665
echo 'memory_limit=${MEMORY_LIMIT}'; \

fpm/docker-entrypoint.sh

+5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ EOT
1313
fi
1414
fi
1515

16+
if [ ! -z "${HIDE_PHP_VERSION}" ]; then
17+
echo "PHP version is now hidden."
18+
echo -e 'expose_php = Off\n' > $PHP_INI_DIR/conf.d/phpmyadmin-hide-php-version.ini
19+
fi
20+
1621
if [ ! -z "${PMA_CONFIG_BASE64}" ]; then
1722
echo "Adding the custom config.inc.php from base64."
1823
echo "${PMA_CONFIG_BASE64}" | base64 -d > /etc/phpmyadmin/config.inc.php

0 commit comments

Comments
 (0)