Laravel 5.X directory permissions / ownership setup

Written by

in

, , ,

According to the Laravel docs, “After installing Laravel, you may need to configure some permissions. Directories within the storage and the bootstrap/cache directories should be writable by your web server or Laravel will not run”.

After running this command to install Laravel via Composer:

Change directory ownership by running these commands:

Then you should see “Laravel 5” on your public folder when you visit it on a web browser.

Make sure you setup your app key by running php artisan key:generate, or else your Laravel still won’t run!

Reference: “The permissions for the storage and vendor folders should stay at 775, for obvious security reasons” on File permissions for Laravel 5 (and others)

Related Posts

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *