用户
 找回密码
 入住 CI 中国社区
搜索
查看: 1818|回复: 2
收起左侧

[Session/Cookie] linux部署是启用session就不成了,求教大神怎么解决

[复制链接]
发表于 2018-5-11 22:25:28 | 显示全部楼层 |阅读模式
A PHP Error was encountered
Severity: Warning

Message: mkdir(): Permission denied

Filename: drivers/Session_files_driver.php

Line Number: 118

Backtrace:

File: /usr/local/nginx/html/zorderserver/application/core/MY_Controller.php
Line: 8
Function: __construct

File: /usr/local/nginx/html/zorderserver/application/controllers/home/Login.php
Line: 7
Function: __construct

File: /usr/local/nginx/html/zorderserver/index.php
Line: 321
Function: require_once

A PHP Error was encountered
Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /usr/local/nginx/html/zorderserver/system/core/Exceptions.php:272)

Filename: core/Common.php

Line Number: 573

Backtrace:

An uncaught Exception was encountered
Type: Exception

Message: Session: Configured save path '/data/sess_save_path' is not a directory, doesn't exist or cannot be created.

Filename: /usr/local/nginx/html/zorderserver/system/libraries/Session/drivers/Session_files_driver.php

Line Number: 120

Backtrace:

File: /usr/local/nginx/html/zorderserver/application/core/MY_Controller.php
Line: 8
Function: __construct

File: /usr/local/nginx/html/zorderserver/application/controllers/home/Login.php
Line: 7
Function: __construct

File: /usr/local/nginx/html/zorderserver/index.php
Line: 321
Function: require_once

A PHP Error was encountered
Severity: Warning

Message: fopen(e82d9f238565db7ed186677aeba2eefe4cf2a328): failed to open stream: Permission denied

Filename: drivers/Session_files_driver.php

Line Number: 157

Backtrace:

A PHP Error was encountered
Severity: Warning

Message: Unknown: Failed to write session data (user). Please verify that the current setting of session.save_path is correct (/data/sess_save_path)

Filename: Unknown

Line Number: 0

Backtrace:
发表于 2018-5-12 00:41:38 | 显示全部楼层
有没有在 config/config.php 里设置 session path?
发表于 2018-5-12 07:55:18 | 显示全部楼层
注意读写路径还有当前写的路径权限是否给够

本版积分规则