本帖最后由 初冬 于 2017-3-3 09:35 编辑
#### php 配置session很有可能是没有权限的原因
1. 修改/etc/php-fpm.d/www.conf所属用户和组用户
Eg:
; RPM: apache Choosed to be able to access some dir as httpd user = nginx ; RPM: Keep a group allowed to write in log dir. group = nginx 2. 修改session文件夹的属性 命令 chown –R nginx:nginx session 3. 重启php-fpm nginx service nginx -s reload 不一一列举,自行百度重启命令
|