pimcore / demo

The Official Pimcore Demo Package - You're new to Pimcore? That's your entry point! 🤓
Other
101 stars 106 forks source link

[Bug]: Following the docker installation readme - Unable to create the "cache" directory (/var/www/html/var/cache/dev). #528

Closed kanevbg closed 1 year ago

kanevbg commented 1 year ago

Expected behavior

No error on accessing the app trough HTTP.

Actual behavior

image

Steps to reproduce

The steps for docker provisioning in the readme of this repository. The same problem is available in pimcore/skeleton. In my case I do not have to change UIDs because of:

[developer@vm-host my-project]$ echo `id -u`:`id -g`
1000:1000
jdreesen commented 1 year ago

But you did remove the # in front of the user: '1000:1000' lines in the docker-compose.yaml, right? Because otherwise, the containers run as root (uid: 0).

kingjia90 commented 1 year ago

what i usually do is chown www-data:www-data /var/www/html/var -R

kanevbg commented 1 year ago

@jdreesen no, I did not changed anything. I was mislead by

Open the docker-compose.yaml file in an editor, uncomment all the user: '1000:1000' lines and update the ids if necessary

that if my user is 1000:1000, then I do not have to make any changes.

I will retry by un-commenting that and post back.

@kingjia90 This did not helped, I ran it outside the container.

kanevbg commented 1 year ago

@jdreesen That solved the problem, thanks for making it clear and sorry for the noise.

kanevbg commented 1 year ago

Closing.