[[PHP环境]] session_write_close(): Failed to write session data (user). session.save_path

现象

**Warning**:  session\_write\_close(): Failed to write session data (user). Please verify that the current setting of session.save\_path is correct (/tmp/php\_session) in **Unknown** on line **0  

先去TMP下建个目录 加权

chgrp -R www /tmp/php_session  
chmod -R 777 /tmp/php_session  

再修改php.ini

session.save_path = "/tmp/php_session"
session.auto_start = 0 为 session.auto_start = 1  
output_buffering=off 改为on  

重启php-fpm生效

service php-fpm restart  
Gracefully shutting down php-fpm . done  
Starting php-fpm  done  

Original url: Access
Created at: 2018-11-23 15:47:20
Category: default
Tags: none

请先后发表评论
  • 最新评论
  • 总共1条评论
DeepMind

Rain酱

解决 https://deepmind.t-salon.cc/article/964

2018-11-23 16:08:29 回复