1

enter image description here

it gives me this error when i put laravel on apache server

The stream or file "/var/www/app/storage/logs/laravel-2019-01-02.log" could not be opened: failed to open stream: Permission denied

i have tried everything i set permission to 777 and set owner to root and i try permission 775 also didnot work can any one help me with this...?

note: i am working on apache server on CentOS7

Simply Ged
  • 8,250
  • 11
  • 32
  • 40

2 Answers2

0

It's a permission issue:

Just Open Your CMD -> Go to your project folder -> Run the following command:

sudo chmod 777 storage/
Ayush Jain
  • 337
  • 3
  • 10
0

i fix it... after using this command i still didnot know what is the reason 1.cd /var/www/html 2.setenforce 0 3.service httpd restart