Phpmyadmin error: Cannot start session without errors problem

Source: Internet
Author: User
Tags fpm ini php and phpmyadmin

Solution 1, Nginx environment

In a new environment, a phpmyadmin
The following message is displayed: Cannot start session without errors ....
Then, when logging on to the system, we also found style errors and so on,
Solution:
Is the permission to access the session directory in the php environment
Open php. ini first
Search: session. save_path
Check whether the directory owner in the path is normal:
Root apache 4096 Mar 15 session
If so, it is obviously abnormal
It should be changed:
Apache 4096 Mar 15 session
Or
Nginx 4096 Mar 15 session
And so on.
Note that !, If it is nginx + php-fpm, in addition to checking the/etc/php. ini settings, you must also check:
/Etc/php-fpm.d/www. conf

Php_value [session. save_path] =/var/lib/php/session

The storage path of this session must be consistent with that of php. ini !!!


Solution 2

Environment: linux, apache2, php5
Problem:
The following error occurs when you open phpmyadmin:

Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.

Solution:

Vim/etc/php5/apache2/php. ini

Find the session. save_path and remove the comments of session. save_path =/var/lib/php5.
If not, change the value of session. auto_start to 1 (start). The default value is 0 (disable)


Solution 3

Windows Server 2003 + IIS6 (ISAPI mode php + zend)

Create a folder named Temp in the php directory and set the Temp attribute to the IIS_Users group, except for all the permissions under full control. (IIS_Users is the IIS anonymous user group)

Find the row session. save_path in php. ini and set it to session. save_path = "D:/host/php/Temp" (remove the semicolon ).

Solution:

Change the value of session. auto_start in php. ini to 1 (start). The default value is 0 (disabled ),
Find the session. save_path line in php. ini and set it to session. save_path = "D:/host/php/Temp" (remove the semicolon)

In phpmyadmin, find config. sample. inc. php and change it to config. inc. php,
Find $ cfg ['blowfish _ secret'] and assign the values to the numbers and letters.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.