php ini更改本地值 [英] php ini change local value
问题描述
我只是在CentOS上用apache设置php55.我也正在运行Couchbase来处理memcached会话.我有一台服务器运行良好.另一个一直试图将php会话保存在本地.不知道为什么. php配置具有session.save_handler=memcached
和session.save_path="cb.path:11211"
I just setup php55 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. Not sure why. The php config has session.save_handler=memcached
and session.save_path="cb.path:11211"
phpinfo页面仍将临时会话路径作为本地"选项列出,并列出文件的处理程序,但get_session_save_path()
返回沙发床网址.
The phpinfo page still lists the temp 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?
推荐答案
/etc/httpd/conf.d/php.conf在写入局部变量时具有php_value声明.
/etc/httpd/conf.d/php.conf had php_value declarations over writing the local variable.
#php_value session.save_handler "files"
#php_value session.save_path "/var/lib/php/session"
此解决方案是此SO答案的一种变体: https://stackoverflow.com/a/19520851/2358135
This solution is a variant of this SO answer: https://stackoverflow.com/a/19520851/2358135
有疑问时grep -lR 'php_value' /etc/
这篇关于php ini更改本地值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!