Storage/app not readable CentOS

Posted 8 months ago by adjaf

Hello, we're working on Laravel as API, we're storing images in database with:

Storage::disk('local')->put($path, $file);

There's no issue there, however when trying to read the route of storage/app we get an exception:

"message": "The root path /var/www/html/projects/laravel-pro/storage/app is not readable.",
    "exception": "LogicException",
    "file": "/var/www/html/projects/laravel-pro/vendor/league/flysystem/src/Adapter/Local.php",
  "line": 81

I found out that it has to be with is_readable($path), however the route is not protected for apache user.

We're setting the url with https with no port like this: https:://, ┬┐What could the problem be? Apache has permissions for writting and reading everything on the project folder

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.