Laravel 5.X directory permissions / ownership setup

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:

Posts that may be related to "Laravel 5.X directory permissions / ownership setup":


A Filipino programmer and baker. When I have time to spare, I blog, play video games, watch series (usually anime), cook dishes, draw, or spend a little time with pets. When I have the rare luxury of time, I get to travel and record song covers too! Running small-time online dessert shops Cookies PH and Catzie's Cakery.

Leave a Reply

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