php ini change local value

微笑、不失礼 提交于 2019-12-06 13:27:14
Carter

/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”

This solution is a variant of this SO answer: https://stackoverflow.com/a/19520851/2358135

When in doubt grep -lR 'php_value' /etc/

Either you can set runtime configuration using ini_set() or call through a .htaccess file

1 using runtime configuration

ini_set("session.save_path","/var/lib/php/session");

2 using .htaccess file.

php_value session.save_path    "/var/lib/php/session”
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!