diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 459f0983..54a25ea8 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -13,7 +13,10 @@ source "$PWD/.env" echo '' > ./var/log/apache2_error.log echo '' > ./var/log/apache2_access.log -chown apache:apache -R ./var/log/apache2_* -chown -R apache:apache /var/www/html -chmod -R 775 /var/www/html + +# new file +echo 'export APACHE_RUN_USER=root' > /etc/apache2/envvars +# append +echo 'export APACHE_RUN_GROUP=root' >> /etc/apache2/envvars + httpd -D FOREGROUND