when I try to run a especifical project on my computer, symfony show me this error:
Warning: SessionHandler::read(): open(/opt/alt/php74/var/lib/php/sessionsess_rt7p5374uhjagiperqv83aej38, O_RDWR) failed: No such file or directory (2)
I’m use symfony 5.4 and PHP 8
2
Answers
I found this line session.save_path = "/opt/alt/php74/var/lib/php/session" in .user.ini file and I changed it and now it's working
There is nothing wrong with Symfony’s side. You can set proper path at
session.save_path
in yourphp.ini
The folder you use should be under your domain/account but not accessible through a Web browser. It also needs to have world-writable permissions on it based on user/role.