liusha_dzj 发表于 2018-5-11 22:25:28

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

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:

Hex 发表于 2018-5-12 00:41:38

有没有在 config/config.php 里设置 session path?

huangxuan258 发表于 2018-5-12 07:55:18

注意读写路径还有当前写的路径权限是否给够
页: [1]
查看完整版本: linux部署是启用session就不成了,求教大神怎么解决