时间:2021-08-21 09:09:59 | 栏目:Shell | 点击:次
如下所示:
系统版本:centos7.0 64位
NGINX版本:nginx version: nginx/1.9.8
PHP版本:PHP 7.0.0 (cli) (built: Dec 1 2015 17:53:27) ( NTS )
mysql版本:mysqld Ver 5.7.10
phpmyadmin版本:4.5.2-all-languages
部署完phpmyadmin,访问主页报错:
Error during session start; please check your PHP and/or webserver log file and configure your PHP installation properly. Also ensure that cookies are enabled in your browser.
百度以后,修改php.ini,开启
session.save_path = "/var/lib/php/session"
确定/var/lib/php/session的权限
[root@iZ28083jjgjZ /]# ll -d /var/lib/php/session/ drwxrwx--- 2 root apache 4096 Dec 2 00:57 /var/lib/php/session/
将用户修改为nginx
[root@iZ28083jjgjZ /]# chown root.nginx /var/lib/php/session
重启nginx以后刷新页面,访问恢复。