FIle permission issues with Vagrant/Laravel

ساخت وبلاگ

I am running Ubuntu 16.04 LTS and am using Vagrant to run a Ubuntu 14.04 Server with a LAMP stack setup. I am working on a Laravel 5.2 project, but constantly have issues with the permissions in the storage folder/sub-folders.

Currently, the folders are owned by my user/group. Anytime some file needs to be created or written too, I get a permission denied error. I can fix this with by chmoding the files to 777. This however does't fix the issue of having the problem when a new file is made (for sessions). I could set the files/folder to inherit permissions of 777. This is fine for a development server I suppose, but I would like to do this the right way, not just the fast way.

What permissions/settings do I need to make (on the host and/or the guest) to the files so that both the command line PHP and web server user can work on the files as necessary?

Recent Questions...
ما را در سایت Recent Questions دنبال می کنید

برچسب : file permission issues windows 7,file permission issues,file permission issues windows 8,file permissions issues mac,file permission problems windows 7,file permission problems mac,file permission problems,file permission problems windows,wordpress file permission issues,windows file permissions issues, نویسنده : استخدام کار superuser بازدید : 448 تاريخ : يکشنبه 31 مرداد 1395 ساعت: 11:05