O'Reilly logo

Learning Laravel 4 Application Development by Hardik Dangar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Giving proper permissions to your storage files

We also need to set correct permissions for storage files in the server. So, we need to give a write permission in the storage directory as follows:

$ chmod –R  777 /var/laravel/app/storage

The preceding command will change the storage directories permission to 777 recursively, so all files and directories will be writable for Laravel. Also, you will need to set a permission for any of your image upload folders in the public directory in the same way.

If your host doesn't allow permissions via command line, then you can use your web admin panel's file manager to change permissions.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required