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 with a variety of interests such as baking, singing, making up silly song/rap lyrics, K-pop, drawing, creating unique dessert flavors, obsessing about finding out how some things works, board games, anime, video games, and forgetting things that usually go in her long list of interests. 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 *