Home > Enterprise >  Laravel Error: There is no existing directory at "/var/www/html/DocApp/storage/logs" and i
Laravel Error: There is no existing directory at "/var/www/html/DocApp/storage/logs" and i

Time:06-11

I have setup a 'DocApp' project by using Laravel Framework on MAMP on MAC machine. Project is physically located at

/Applications/MAMP/htdocs/DocApp

I have run below command to make symbolic link of storage directory:

php artisan storage:link

It created symbolic storage folder in public directory.

I have started server services to run this project by below command in terminal:

php artisan serve

then opened project URL in the browser http://127.0.0.1:8001/

I am getting below error in the browser:

There is no existing directory at "/var/www/html/DocApp/storage/logs" and its not buildable: Permission denied

I have set logs folder permission to 777 and 755 but still getting the same error.

I have noticed a thing that correct project physical location is at /Applications/MAMP/htdocs/DocApp while error message is showing different location of this project /var/www/html/DocApp/

Please find the attached screenshot of error:

enter image description here

Kindly suggest me what is exact issue and how can we solve it? Thank you

CodePudding user response:

give permission to your storage folder not only log folder

sudo chmod -R 777 storage/

CodePudding user response:

I have deleted below cached files under bootstrap folder:

/bootstrap/cache/packages.php
/bootstrap/cache/services.php
/bootstrap/cache/config.php

Then run php artisan cache:clear command in terminal.

And now everything is under control and working well, problem solved.

  • Related