docker-compose-lamp
docker-compose-lamp copied to clipboard
[BUG] You need to grant write permissions for PHP on the following directory: /var/www/html
Describe the bug You need to grant write permissions for PHP on the following directory: /var/www/html
which Branch / PHP Version are you using ? php71
To Reproduce Steps to reproduce the behavior: Install Prestashop 1.7
Expected behavior Prestashop should be installed
Desktop (please complete the following information):
- OS: Ubuntu 20.04
- Chrome
- Docker Version:
docker -v
Docker version 19.03.13, build 4484c46d9d
Are you using WSL ? #67 could solve your issue.
#67 could solve your issue.
Perhaps but it seem to cause problems https://github.com/sprintcube/docker-compose-lamp/issues/67#issuecomment-698116189
I'm still experimenting with docker and I have modified your setup to potentially fix this issue and to have the docker config in a .docker folder (with development files in the parent directory). Since I'm still experimenting I'm not sure if it's ok but it seem to work. https://github.com/Paviluf/docker-lamp
Are you using WSL ?
No I'm on Ubuntu
I also found that adding a user
directive in docker-compose doesn't affect which user owns the apache2 process. The only way to grant access to files is to chown 33:33
on the host system. :(
Running Manjaro.
Add in your php Dockerfile
RUN usermod -u 1000 www-data
I have the same problem and adding
RUN usermod -u 1000 www-data
did not help
Are you using WSL ? #67 could solve your issue.
setting ..:rw
in docker-compose.yml
fixed my permission problem
Add in your php Dockerfile
RUN usermod -u 1000 www-data
worked for me
This post is about this permissions issue. https://aschmelyun.com/blog/fixing-permissions-issues-with-docker-compose-and-php/
Add in your php Dockerfile
RUN usermod -u 1000 www-data
and where should I write this? bin/php81/Dockerfile on which line? and then rebuild the image?
anyone figured this? I am stuck with the same issue, all files created inside docker are listed as root on the host. Added the run command, compose up, nothing. Also tried to exchange www-data with root