diff --git a/web-apache-mysql/alpine/Dockerfile b/web-apache-mysql/alpine/Dockerfile index 269c58035..9106643e0 100644 --- a/web-apache-mysql/alpine/Dockerfile +++ b/web-apache-mysql/alpine/Dockerfile @@ -39,7 +39,8 @@ RUN set -eux && \ php7-sockets \ php7-fileinfo \ php7-xmlreader \ - php7-xmlwriter && \ + php7-xmlwriter \ + php7-openssl && \ apk add --clean-protected --no-cache --no-scripts apache2-ssl && \ rm -f "/etc/apache2/conf.d/default.conf" && \ rm -f "/etc/apache2/conf.d/ssl.conf" && \ diff --git a/web-apache-mysql/centos/docker-entrypoint.sh b/web-apache-mysql/centos/docker-entrypoint.sh index 5e3a0ade8..d5aa5fc3f 100755 --- a/web-apache-mysql/centos/docker-entrypoint.sh +++ b/web-apache-mysql/centos/docker-entrypoint.sh @@ -223,6 +223,13 @@ prepare_zbx_web_config() { update_config_var "$PHP_CONFIG_FILE" "php_value[max_input_time]" "${ZBX_MAXINPUTTIME:-"300"}" update_config_var "$PHP_CONFIG_FILE" "php_value[date.timezone]" "${PHP_TZ}" + if [ "$(id -u)" == '0' ]; then + echo "user = zabbix" >> "$PHP_CONFIG_FILE" + echo "group = zabbix" >> "$PHP_CONFIG_FILE" + echo "listen.owner = nginx" >> "$PHP_CONFIG_FILE" + echo "listen.group = nginx" >> "$PHP_CONFIG_FILE" + fi + ZBX_HISTORYSTORAGETYPES=${ZBX_HISTORYSTORAGETYPES:-"[]"} # Escaping characters in parameter value diff --git a/web-apache-pgsql/alpine/Dockerfile b/web-apache-pgsql/alpine/Dockerfile index 03f655619..eae0ba871 100644 --- a/web-apache-pgsql/alpine/Dockerfile +++ b/web-apache-pgsql/alpine/Dockerfile @@ -38,6 +38,7 @@ RUN set -eux && \ php7-fileinfo \ php7-xmlreader \ php7-xmlwriter \ + php7-openssl \ postgresql-client && \ apk add --clean-protected --no-cache --no-scripts apache2-ssl && \ rm -f "/etc/apache2/conf.d/default.conf" && \ diff --git a/web-apache-pgsql/centos/docker-entrypoint.sh b/web-apache-pgsql/centos/docker-entrypoint.sh index 1c3b45bd5..34834ff40 100755 --- a/web-apache-pgsql/centos/docker-entrypoint.sh +++ b/web-apache-pgsql/centos/docker-entrypoint.sh @@ -225,6 +225,13 @@ prepare_zbx_web_config() { update_config_var "$PHP_CONFIG_FILE" "php_value[max_input_time]" "${ZBX_MAXINPUTTIME:-"300"}" update_config_var "$PHP_CONFIG_FILE" "php_value[date.timezone]" "${PHP_TZ}" + if [ "$(id -u)" == '0' ]; then + echo "user = zabbix" >> "$PHP_CONFIG_FILE" + echo "group = zabbix" >> "$PHP_CONFIG_FILE" + echo "listen.owner = nginx" >> "$PHP_CONFIG_FILE" + echo "listen.group = nginx" >> "$PHP_CONFIG_FILE" + fi + ZBX_HISTORYSTORAGETYPES=${ZBX_HISTORYSTORAGETYPES:-"[]"} # Escaping characters in parameter value diff --git a/web-nginx-mysql/alpine/Dockerfile b/web-nginx-mysql/alpine/Dockerfile index c07dc49c0..1ffcb9a74 100644 --- a/web-nginx-mysql/alpine/Dockerfile +++ b/web-nginx-mysql/alpine/Dockerfile @@ -41,6 +41,7 @@ RUN set -eux && \ php7-fileinfo \ php7-xmlreader \ php7-xmlwriter \ + php7-openssl \ supervisor && \ rm -rf /etc/php7/php-fpm.d/www.conf && \ rm -f /etc/nginx/conf.d/*.conf && \ diff --git a/web-nginx-pgsql/alpine/Dockerfile b/web-nginx-pgsql/alpine/Dockerfile index 3e1cb954b..819f11c01 100644 --- a/web-nginx-pgsql/alpine/Dockerfile +++ b/web-nginx-pgsql/alpine/Dockerfile @@ -39,6 +39,7 @@ RUN set -eux && \ php7-fileinfo \ php7-xmlreader \ php7-xmlwriter \ + php7-openssl \ postgresql-client \ supervisor && \ rm -rf /etc/php7/php-fpm.d/www.conf && \