Such a problem, there is a test circuit, on it the same project works under Apache and ngnix. On nginx with sessions everything is fine, on apache incomprehensible problems - something is missing in the environment. In general, no session works correctly, it seems to be recorded, but the next time the script is loaded, everything disappears ... I cannot specifically explain what is not working. If I understand correctly, the sessions are duplicated in the database. At the heart of the zend framework 1, the project is quite large, so I can’t lay out a specific place in the code. Help, please make sessions work with Apache? The problem is 100% in the environment, where you can see what to check?

  • Is the project running on nginx? - dlarchikov
  • Production version on ngnix, combining both on the test loop, on the development machine - OpenSuse + apache2 - Andrey Talanin
  • Does nginx work for you as a web server or as a proxy server for example on php-fpm? Just as a web server, I met only one article on how to do this, but I didn’t see anything approved of it. - dlarchikov
  • There is php-fpm (to be honest, I didn’t work with nginx before, I’m not good at it, the whole system wasn’t configured by me) - Andrei Talanin
  • one
    See Zend config. There also seems to be session settings. Maybe they point to an incorrect path. - dlarchikov

1 answer 1

The problem was due to the fact that somewhere in the project there was no rights to the cache folder. It was decided so:

chmod 777 -R