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:
|
|
composer create–project —prefer–dist laravel/laravel blog |
Change directory ownership by running these commands:
|
|
sudo chown –R www–data:www–data /path/to/your/project/storage sudo chown –R www–data:www–data /path/to/your/project/bootstrap/cache |
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
The homo sapiens behind these blog posts is “Catzie“
An odd human being who happens to have a variety of ever-changing interests, but these days she is often caught coding (Web and Android App Developer for a total of 14+ years!), optimizing this blog, tweaking a Traveler’s Notebook, refilling a cheap fountain pen, making up silly song/rap lyrics, watching K-pop performances, concocting unusual dessert/drink flavors, making scented candles, drawing, painting water-based mixed media pieces, obsessing about how some things works and what unfamiliar words mean, automating repetitive chores, anime, video games… Ran online dessert shops Cookies PH and Catzie’s Cakery in her past life.