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.