0

I'm trying to run a Laravel project previously developed in another environment using Laravel Sail, but I'm experiencing several problems related to permissions. The docker container "laravel.test" container shows de following error:

The /var/www/html/bootstrap/cache directory must be present and writable.  

I have already tried several files ownerships and permission configurations, but I can't get it to work. Other similar questions I found are not using sail and speak of www-data group, but this group doesn't even exist in my host (Fedora).

What is the correct owner/grup and permissions configurations I should set to make sail work in Fedora?

Another sub-question I do have: Te "/var/www/html/bootstrap/cache" path is relative to my OS (Fedora), or it's a folder inside the container?

Nil Suria
  • 474
  • 4
  • 15
  • Second question: `/var/www/html/bootstrap/cache` is relative to your path in the container, don't worry about that for now. 1) publish sail's files, you need to edit the Dockerfile that comes with Sail. 2) there is a WWWGROUP or WWWUSER variable and they're doing some weird things with it. Very very basic: the www-data user, keep that at PGID 1000 (from the top of my head). Look for the part with `usermod` in your published Dockerfile – UnderDog May 02 '23 at 17:22

0 Answers0