You cannot create a session when an error occurs, check the PHP or Web server log, and properly configure the PHP installation (win+linux) _php tips
Source: Internet
Author: User
Solutions under Windows:
Check to see if the directory exists or if the directory has write permissions for everyone or authenticated users by looking for a path to PHP.ini's Session.save_path = "". It's generally okay.
Solutions for Linux:
Today updated PHP, the result of the configuration of the phpMyAdmin landing in the "cannot create a session when an error occurs, check the PHP or Web server log, and configure the PHP installation correctly." "The mistake.
Error Reason:
PHP Update, overwriting the original/var/lib/php/session permissions, resulting in Apache users can not write session, resulting in this error.
Where username is the host user of Apache, I am Apache, so the command to execute is:
#chown-R root:apache/var/lib/php/session
If you also receive that error prompt, it is recommended that you do this:
#chmod-R 777/var/lib/php/session
Afraid of 777 of the permissions are too large, testing 770, 766, 776 can not solve the above problems, had to give 777 permissions first.
Do not know if there is a security risk in the use of the test, first write down this position.
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.