PHP7 + Symfony 2.8, Failed to write session data

前端 未结 4 1229
挽巷
挽巷 2020-12-09 17:12

i compiled php7 on my own (974f6c2a705). if i run php7 + php-fpm + nginx using symfony i get this error:

(using the snc redis bundle for sessions:)

          


        
4条回答
  •  春和景丽
    2020-12-09 17:57

    I had this same issue when I moved from Apache PHP7 to PHP7-FPM. Only fix for me was to go to the var directory of my Symfony app and remove all the files there, fix the permissions on the var if needed chmod 777. Afterwards reload the URL of my app and good to go. Afterwards Symfony will re-create all the cache, logs, sessions, etc.

提交回复
热议问题