phpMyAdmin error Causes and solutions: Unable to create the session in the event of an exception, check the PHP or Web server logs and properly configure the PHP installation
Source: Internet
Author: User
phpMyAdmin error Causes and solutions: Unable to create the session in the event of an error, check the PHP or Web server logs and properly configure the PHP installation.
Original address: http://www.page99.net/tn/archives/323
Two days ago Login phpMyAdmin suddenly went wrong,
"Unable to create the session in the event of an error, check the PHP or Web server logs and properly configure the PHP installation." ”
Very strange the previous days have been good, how suddenly can not use, the phpMyAdmin file copy to another site directory, run, incredibly good. But the original directory is not.
After use, the other site in the phpMyAdmin deleted, the original directory is still bad, there is time to find a reason to solve.
Today, but also use to modify something, the original directory or bad, re-download from the official latest 3.3. Version 1 upload, or bad, to another directory is also the same. It seems that the problem is always solved.
Google, some people say is "Open your php.ini profile Session.save_path =" A path "check whether the item is configured correctly", roughly understand, it is estimated that phpmyadmin need to write the session file, But the session directory does not have the appropriate permissions so error "... Create a session When an error occurs ... ", the error message indicates that the session is related, but this error message is too brief, not easy to see clearly.
Modify the php.ini on the server, which was not previously configured for Session.save_path. So C set up a Session Directory C:\tempfolder \phpsession, to phpMyAdmin site of the Web users to read and write permission, in the php.ini add a
Session.save_path= "C:\tempfolder\phpsession"
Run IISReset, entered the phpMyAdmin site, finally saw the long-lost login page.
Analyze the reason, it should be this:
The Windows version of PHP should default to use the system temporary file directory, perhaps for some other reason, before the temporary file directory permissions were lost, so the above error is reported
A few days before the copy to another site directory, and this site's IIS users to the Windows temporary files have read and write permissions, so you can use phpMyAdmin; today, the IIS users of that site also have no permissions, it is not.
As for some people on the internet, to give everyone access to read and write (and even to say "Full Control" permission), there is no need, only to the corresponding IIS users to read and write permissions can be, otherwise it is completely hidden.
By the way, my phpmyadmin not put on my own computer, remote connection to the MySQL server, but directly put phpMyAdmin on the MySQL server, so it is safe to see. The root user of MySQL only allows localhost to connect, not to allow connections from other hosts. Other users are allowed access only on the appropriate host.
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.