php-app icon indicating copy to clipboard operation
php-app copied to clipboard

File permissions working correct?

Open ltdev22 opened this issue 7 years ago • 0 comments

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 avatar Jun 16 '18 12:06 ltdev22