Skip to content

Commit

Permalink
Merge pull request #410 from OpenConext/bugfix/docker-symfony-cache-m…
Browse files Browse the repository at this point in the history
…ust-be-writable-by-apache

Fix: the /var/cache/prod directory must be writable by the apache php module
  • Loading branch information
quartje authored Sep 22, 2023
2 parents 7a752bf + b47de61 commit a3ad3db
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docker/Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ COPY config/packages/prod/monolog.yaml.docker config/packages/prod/monolog.yaml
# Add the config files for Apache2
RUN rm -rf /etc/apache2/sites-enabled/*
COPY ./docker/conf/middleware-apache2.conf /etc/apache2/sites-enabled/middleware.conf
RUN rm -rf /var/www/html/var/cache/prod && chown -R www-data /var/www/html/var

# Recreate the cache directory and set the correct permissions
RUN rm -rf /var/www/html/var/cache/prod && \
mkdir -p /var/www/html/var/cache/prod && \
chown -R www-data /var/www/html/var

EXPOSE 80

# Set the default workdir
Expand Down

0 comments on commit a3ad3db

Please sign in to comment.