Skip to content

Commit

Permalink
Apache User permission issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
dasscheman committed May 13, 2024
1 parent 31fe584 commit 6895617
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker/backend.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ RUN apt-get install -y libxml2-dev libzip-dev libpng-dev
RUN apt-get install -y libcap2-bin procps
RUN setcap 'cap_net_bind_service=+ep' /usr/local/bin/apache2-foreground
RUN chown -R www-data:www-data /var/log/apache2
RUN chown -R www-data:www-data /usr/local/bin/apache2-foreground

# install additional PHP extensions
RUN docker-php-ext-install pdo_mysql mysqli soap zip gd
Expand Down Expand Up @@ -57,7 +58,7 @@ COPY ./docker/docker.env /var/www/html/.env
# run composer
RUN composer install

RUN chown www-data /var/www/html/storage -R
RUN chown www-data:www-data /var/www/html/storage -R
RUN chmod a+w -R /var/www/html/storage
RUN chmod a+w -R /var/www/html/vendor
RUN php artisan key:generate
Expand Down

0 comments on commit 6895617

Please sign in to comment.