I just set up PHP 5.5 with Apache on CentOS. I am also running Couchbase to handle Memcached sessions. I have one server running fine. The other keeps trying to save PHP sessions locally. I am not sure why. The PHP configuration has session.save_handler=memcached
and session.save_path="cb.path:11211"
.
The phpinfo page still lists the temporary session path as the "local" option and the handler to files, but get_session_save_path()
returns the Couchbase URL.
How do I find where the local value is being set?
File /etc/httpd/conf.d/php.conf had php_value declarations overwriting the local variable.
#php_value session.save_handler "files"
#php_value session.save_path "/var/lib/php/session”
This solution is a variant of this Stack Overflow answer: What is the difference between local value and master value
When in doubt, use:
grep -lR 'php_value' /etc/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With