skip to Main Content

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

2

Answers


  1. Chosen as BEST ANSWER

    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


  2. It’s a permission issue:

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

    sudo chmod 777 storage/
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search