前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >phpmyadmin,访问主页报错: Error during session start; please check your PHP and/or webserver log file and c

phpmyadmin,访问主页报错: Error during session start; please check your PHP and/or webserver log file and c

作者头像
botkenni
发布2019-09-02 17:14:10
2.9K0
发布2019-09-02 17:14:10
举报
文章被收录于专栏:IT码农

原因1:

http://www.zihao123.com/1255.html

部署完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,开启

代码语言:javascript
复制
  1. session.save_path = "/var/lib/php/session"

确定/var/lib/php/session的权限

代码语言:javascript
复制
  1. [root@iZ28083jjgjZ /]# ll -d /var/lib/php/session/
  2. drwxrwx--- 2 root apache 4096 Dec 2 00:57 /var/lib/php/session/

将用户修改为nginx

代码语言:javascript
复制
  1. [root@iZ28083jjgjZ /]# chown root.nginx /var/lib/php/session

重启nginx以后刷新页面,访问恢复。

原因2:

http://www.phperz.com/article/14/1222/42451.html

原因分析

原因是由于/usr/local/php下无session保存会话的一个机制文件

解决办法

首先检查vim /etc/php.ini 查看里面session.save_path = "/usr/local/php/tmp/"是否注释掉。如果注释把;去掉。开启。

代码语言:javascript
复制
mkdir -p /usr/local/php/tmp/
chmod -R 777 /usr/local/php/tmp/

重启httpd或者fpm,即可解决。

浏览器再次访问成功进去。

然后去创建的目录下查看生成的会话内容。

G

M

T

Detect languageAfrikaansAlbanianArabicArmenianAzerbaijaniBasqueBelarusianBengaliBosnianBulgarianCatalanCebuanoChichewaChinese (Simplified)Chinese (Traditional)CroatianCzechDanishDutchEnglishEsperantoEstonianFilipinoFinnishFrenchGalicianGeorgianGermanGreekGujaratiHaitian CreoleHausaHebrewHindiHmongHungarianIcelandicIgboIndonesianIrishItalianJapaneseJavaneseKannadaKazakhKhmerKoreanLaoLatinLatvianLithuanianMacedonianMalagasyMalayMalayalamMalteseMaoriMarathiMongolianMyanmar (Burmese)NepaliNorwegianPersianPolishPortuguesePunjabiRomanianRussianSerbianSesothoSinhalaSlovakSlovenianSomaliSpanishSundaneseSwahiliSwedishTajikTamilTeluguThaiTurkishUkrainianUrduUzbekVietnameseWelshYiddishYorubaZulu

AfrikaansAlbanianArabicArmenianAzerbaijaniBasqueBelarusianBengaliBosnianBulgarianCatalanCebuanoChichewaChinese (Simplified)Chinese (Traditional)CroatianCzechDanishDutchEnglishEsperantoEstonianFilipinoFinnishFrenchGalicianGeorgianGermanGreekGujaratiHaitian CreoleHausaHebrewHindiHmongHungarianIcelandicIgboIndonesianIrishItalianJapaneseJavaneseKannadaKazakhKhmerKoreanLaoLatinLatvianLithuanianMacedonianMalagasyMalayMalayalamMalteseMaoriMarathiMongolianMyanmar (Burmese)NepaliNorwegianPersianPolishPortuguesePunjabiRomanianRussianSerbianSesothoSinhalaSlovakSlovenianSomaliSpanishSundaneseSwahiliSwedishTajikTamilTeluguThaiTurkishUkrainianUrduUzbekVietnameseWelshYiddishYorubaZulu

Text-to-speech function is limited to 200 characters

Options : History : Feedback : Donate

Close

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 原因分析
  • 解决办法
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档