phpmyadmin报错:Cannot start session without errors问题
在使用phpmyadmin时发现Cannot start session without errors问题解决办法,希望此文章能给你带来帮助哦。
解决方法一,nginx 环境
在一个新环境中,装了一个phpmyadmin
发现打开的时候提示:Cannot start session without errors….
然后登陆的时候,也发现样式等等的错误,
解决办法:
是php环境中session存放目录的权限访问问题
先打开php.ini
查找:session.save_path
检查路径下的目录的所有者是否正常:
root apache 4096 Mar 15 23:07 session
如果是这样的,明显不正常
应该改成:
apache apache 4096 Mar 15 23:07 session
或
nginx nginx 4096 Mar 15 23:07 session
等等。
另外请注意!,如果是nginx + php-fpm,除了检查/etc/php.ini 的设置外也要检查:
/etc/php-fpm.d/www.conf 的
php_value[session.save_path] = /var/lib/php/session
这个session的存储路径必须和php.ini 的一致!!!
解决办法二
环境:linux ,apache2 ,php5
问题:
打开phpmyadmin出现如下错误:
Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.
解决办法:
vim /etc/php5/apache2/php.ini
查找session.save_path ,将session.save_path=/var/lib/php5这一句的注释符号去掉。
如还不能正常工作,将session.auto_start的值改为1(启动),默认是0(禁用)
解决办法三
Windows Server 2003 + IIS6 (ISAPI mode php +zend)
在php的目录建立个文件夹Temp,设置Temp属性为IIS_Users组除完全控制的所有权限。(IIS_Users为IIS匿名用户组)
在php.ini找到session.save_path 这一行,设成session.save_path = “D:/host/php/Temp”(把分号去掉)。
解决办法:
将php.ini中的session.auto_start的值改为1(启动),默认是0(禁用),
在php.ini找到session.save_path 这一行,设成session.save_path = “D:/host/php/Temp” (把分号去掉)
在phpmyadmin中找到,config.sample.inc.php,改成config.inc.php,
找到 $cfg['blowfish_secret'] 将后面的赋值,加入数字和字母组合。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

Atom editor mac version download
The most popular open source editor

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment