skip to Main Content

I’m new to Laravel and I have to develop on a project that already exists. But I am adding new features and I have to stage an environment to test. Thus, I chose the Cloudways platform. I upload my files using Filezilla but when I launch my website, I have the

ErrorException
file_put_contents(C:wamp64wwwmyapphtdocsstorageframework/sessions/l7OUJvDvv4UsvRPb7LNCIt8JNyVYRmE401P6zlKr):
failed to open stream: No such file or directory

The error is at vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:135

I think it tries to create a new file with the path given. I know that the path that Cloudways is using is the one on my local environment. But I want it to access to the path on the server. I have read lots of forums but I don’t find any answers…

My Laravel version is 7.30.6 and php version is 7.4.26

I’ve tried to reinstall Laravel and Composer and do the route:cache and views:cache

Also, I read on forums that the config/filesystems.php as to be like this:

that

but it’s already the case.

2

Answers


  1. Chosen as BEST ANSWER

    I found the solution. Inside the folder /storage/framework/sessions/FileSessionHandler, I had to modify the value of the $path variable.


  2. Try php artisan config:clear and then upload the project via Filezilla

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search