app/storage/meta/services.json: failed to open stream: Permission denied - Laravel 4

If you are getting this error on your laravel 4 installation so put the steps as i mention below
Error is like this in laravel 4

ErrorException

file_put_contents(/var/www/vhosts/folder/app/storage/meta/services.json): failed to open stream: Permission denied 
That means permission is not granted to write for meta folder
so you need to run these command on your server
from your root folder

Step 1: Come to your root folder var/www/vhosts/yousite_folder/

Step 2: Run this command first
find app/storage -type d -exec chmod 777 {} \;

Step 3: Run this command now
find app/storage -type f -exec chmod 777 {} \;

These command will chmod all directories and files in app/storage to 777. 

Done!!

Now you can refresh your page and working fine.

If this post help you please submit a comment in post to inspire me :)

Comments

Post a Comment