Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP ini change local value

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?

like image 801
Carter Avatar asked Oct 16 '25 13:10

Carter


1 Answers

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/
like image 131
Carter Avatar answered Oct 18 '25 11:10

Carter



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!