-3

Today i went to my website and this what i found.

And i'm really confused right now, is anyone familiar with this problem?

  • you need to give permission.it's the issue with the server permissions /var/www/html/yourproject – Salman Zafar Jul 16 '18 at 09:03
  • Possible duplicate of [File permissions for Laravel 5 (and others)](https://stackoverflow.com/questions/30639174/file-permissions-for-laravel-5-and-others) – H H Jul 16 '18 at 09:05
  • Next time maybe follow the [installation instructions](https://laravel.com/docs/5.6/installation#installing-laravel) – brombeer Jul 16 '18 at 09:11
  • do you have any scheduled tasks? or ran any artisan commands recently? – lagbox Jul 16 '18 at 10:58

2 Answers2

0

you need to run the below command on your server:

sudo chown -R www-data:www-data /var/www/html/projectpath

if you only want to give permission to storage folder then run below command:

chmod 775 /var/www/html/projectpath/storage

Hope you got your answer.

Salman Zafar
  • 3,844
  • 5
  • 20
  • 43
0

This issue is not at all because of laravel. It is occurring because there is no permission given to your storage folder to open the file.

So you need to give permission by using below command:

sudo chmod 777 /var/www/html/projectpath/storage

777 command means you're giving all the permissions like read write open and making it accessible.