
Then you set all your directories to 755 and your files to 644. Of course, this assumes your webserver is running as www-data (the Homestead default), and your user is ubuntu (it's vagrant if you are using Homestead).
/cdn.vox-cdn.com/uploads/chorus_image/image/67814021/Screen_Shot_2020_11_18_at_2.50.53_PM.0.png)
If you do that, the webserver owns all the files, and is also the group, and you will have some problems uploading files or working with files via FTP, because your FTP client will be logged in as you, not your webserver, so add your user to the webserver user group: sudo usermod -a -G www-data ubuntu sudo chown -R www-data:www-data /path/to/your/laravel/root/directory Webserver as owner (the way most people do it, and the Laravel doc's way):Īssuming www-data (it could be something else) is your webserver user. Either you give yourself ownership or you make the webserver the owner of all files. There are basically two ways to setup your ownership and permissions. SERVER TO ANYONE THAT CAN FIND THAT DIRECTORY. IF YOU ARE SETTING YOUR FOLDER PERMISSIONS TO 777 YOU HAVE OPENED YOUR what this means is you have given ANYONE (any hacker or malicious person in the entire world) permission to upload ANY file, virus or any other file, and THEN execute that file. if you give any of your folders 777 permissions, you are allowing ANYONE to read, write and execute any file in that directory. Just to state the obvious for anyone viewing this discussion.

Laravel may require some permissions to be configured: folders within I found plenty of different approaches to make it work and I usually end with making it 777 chmod recursively. I'm using Apache Web Server that has the owner set to _Laravel 5 requires /storage folder to be writable.
