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":

Catzie

An odd human being who happens to have a variety of ever-changing interests, but right now they are programming, making up silly song/rap lyrics, K-pop, drawing, creating unique dessert/drink flavors, obsessing about finding out how some things works, automation, anime, video games... Ran online dessert shops Cookies PH and Catzie's Cakery in her past life.

Leave a Reply

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