phpMyAdmin错误

问答中心分类: LinuxphpMyAdmin错误
匿名用户 asked 9 年 ago
Warning in ./libraries/session.inc.php#101
session_start(): open(/tmp/session/sess_r8eletil995p9hibq3296k8tdfapdnug, O_RDWR) failed: No such file or directory (2)

Backtrace

./libraries/session.inc.php#101: session_start()
./libraries/common.inc.php#350: require(./libraries/session.inc.php)
./index.php#12: require_once(./libraries/common.inc.php)
Warning in ./libraries/session.inc.php#131
session_regenerate_id(): open(/tmp/session/sess_5djf623hla1096rirrin3so0k370i87u, O_RDWR) failed: No such file or directory (2)

Backtrace

./libraries/session.inc.php#131: session_regenerate_id(boolean true)
./libraries/common.inc.php#878: PMA_secureSession()
./index.php#12: require_once(./libraries/common.inc.php)
Catchable Fatal Error in ./libraries/session.inc.php#131
session_regenerate_id(): Failed to create(read) session ID: files (path: /tmp/session)

Backtrace

./libraries/session.inc.php#131: session_regenerate_id(boolean true)
./libraries/common.inc.php#878: PMA_secureSession()
./index.php#12: require_once(./libraries/common.inc.php)

2 Answers
匿名用户 answered 9 年 ago
session目录的权限问题
访问phpMyAdmin的时候,出现如下错误。

 
 

1
2

Warning in ./libraries/session.inc.php#101
session_start(): open(/var/lib/php/session/sess_cmse089tsfsnoj02220beduuf1qp21fv, O_RDWR) failed: Permission denied (13)

/var/lib/php/session目录的默认所有者是root组是Apache,因此session目录的所有者。

 
 

1

# chown nginx:nginx /var/lib/php/session

oneinstack answered 9 年 ago
我刚刚测试没问题哦?