Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File permissions working correct? #38

Open
ltdev22 opened this issue Jun 16, 2018 · 0 comments
Open

File permissions working correct? #38

ltdev22 opened this issue Jun 16, 2018 · 0 comments

Comments

@ltdev22
Copy link

ltdev22 commented Jun 16, 2018

Hi, I have pulled the repository, run docker-compose up -d and docker run -it --rm \ ... composer create-project laravel/laravel application to create a new Laravel app.

When I try to access the laravel app through http://localhost:8888 I get this error on screen
The stream or file "/var/www/html/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied

To fix this I've run sudo chown -R 33 ./applciation as per your video for file permissions, but the problem is that whenever I generate a new file through artisan and try to edit it I get a popup window that prompts me to type my sudo password in order to save it. So in this case I have to run these commands again and again whenever I use artisan

sudo chown -R my-user ./application
sudo chgrp -R my-user ./application
sudo chown -R 33 ./application/storage

Is there a more efficient way of doing this?

@ltdev22 ltdev22 changed the title Trying to access url, but getting nginx 404 File permissions working correct? Jun 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant