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

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

WebStorm Mac version
Useful JavaScript development tools

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

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