Skip to content
Advertisement

php-fpm and nginx session problems

I’ve been having this problem for the past week or so. I’ve been working on a PHP project that relies HEAVILY on Sessions. For some reason we’ve been having troubles with the sessions saving the past few days. Any idea why?

Here’s the error:

JavaScript

nginx version:

JavaScript

PHP-FPM config:

JavaScript

nginx.conf:

JavaScript

Advertisement

Answer

I found that my php.ini was attempting to save sessions to /var/lib/php/session rather than /tmp

So check your ini file and see where they’re being saved to (or set it to somewhere else); then make sure that directory is writeable by the appropriate processes

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement