failed to open stream
Closed this issue · 5 comments
Hello ,
running under W10 with wsl2, debian and Docker Desktop.
I can create the containers with .docker/scripts/init
. No errors here and i see the containers in Docker Desktop.
When I run ./.docker/scripts/install-laravel
to test, I get an error
File ./src/.env found. Performing variable replacing... .docker/scripts/init-laravel: line 45: ./src/.env: Permission denied
I can run this command as sudo, but then i get errors like file_put_contents(/var/www/storage/framework/sessions/wh..5e6p8AqD): failed to open stream: Permission denied
Any thoughts?
Marcus Winckers
Hi @bolloplayer, I think sudo shouldn't be used in this case.
After the error, who's the owner of ./src/.env
?
What user are you running this scripts under?
Sorry @bolloplayer, but I'm not able to reproduce your issue.
after the install-laravel command, the directory ./src has root root
privs.
Are you running any script as root?
I'm not using sudo
in the scripts. I can't understand how your .env
file can be owned by root; same for your src/
folder.
Can you please post the content of your .env file and, if possible, the exact sequence of the commands your issuing along with the output?
@bolloplayer Any news?