nginx 下安装配置 phpadmin报错的解决方法
如下所示:
系统版本: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以后刷新页面,访问恢复。
相关推荐
zyyjay 2020-11-09
xuebingnan 2020-11-05
samtrue 2020-11-22
stefan0 2020-11-22
yifangs 2020-10-13
songshijiazuaa 2020-09-24
hebiwtc 2020-09-18
天步 2020-09-17
83911535 2020-11-13
whatsyourname 2020-11-13
zhouyuqi 2020-11-10
Noneyes 2020-11-10
mathchao 2020-10-28
王志龙 2020-10-28
wwwsurfphpseocom 2020-10-28
diskingchuan 2020-10-23
savorTheFlavor 2020-10-23