skip to Main Content

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


  1. Chosen as BEST ANSWER

    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


  2. There is nothing wrong with Symfony’s side. You can set proper path at session.save_path in your php.ini

    session.save_path = "/path/to/your/folder"
    

    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.

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