Phpmyadmin error cause and solution: you cannot create a session when an exception occurs. check the PHP or website server logs and correctly configure PHP installation.

Source: Internet
Author: User
Phpmyadmin error cause and solution: you cannot create a session when an error occurs. check the PHP or website server logs and correctly configure PHP installation. Original article address: phpmyadmin error cause and solution: you cannot create a session when an error occurs. check the PHP or website server logs and correctly configure PHP installation.
Address: http://www.page99.net/tn/archives/323


An error occurred while logging on to phpmyadmin two days ago,

"You cannot create a session when an error occurs. check the PHP or website server logs and correctly configure PHP installation ."

It is strange that the phpmyadmin file was copied to the directory of another site for the last few days. But the original directory does not work.

After using it, I deleted phpmyadmin from another site. The original directory is still bad. I have time to find the cause.

Today, I want to modify some things again. The original directory is still bad. it is still bad to download the latest 3.3.1 version from the official website. it is also bad to upload it to another directory. It seems that this problem is always to be solved.

Google said, "Open Your php. ini configuration file session. save_path = "a path" check whether this item is configured correctly ". it is generally clear that phpmyadmin needs to write the session file, but the session directory does not have the relevant permissions, so the error"... Create a session when an error occurs ...", The error message indicates session-related information, but the error message is too simple to be easily understood.

Modify php. ini on the server. session. save_path has not been configured before. Therefore, drive c creates a session directory c: \ tempfolder \ phpsession, assigns the read and write permissions to the web users of the phpmyadmin site, and adds the previous one to php. ini.

Session. save_path = "c: \ tempfolder \ phpsession"

Run iisreset and enter the phpmyadmin site. the logon page is displayed for a long time.

The reason should be analyzed as follows:

For php of windows, the system temporary file directory should be used by default. for other reasons, the permission for the temporary file directory is lost, so the above error is reported.

Copied to another site directory a few days ago, and the site's iis users have read and write permissions on windows temporary files, so they can use phpmyadmin normally. Today, the site's iis users have no permissions, it won't work.

Some people on the Internet say that it is unnecessary to grant everyone read and write permissions (or even grant "full control" permissions, only the corresponding iis users can be granted with the read and write permissions; otherwise, it is completely hidden.

By the way, my phpmyadmin is not stored on my computer and remotely connects to the mysql server. Instead, I directly put phpmyadmin on the mysql server to ensure security. The root user of mysql only allows localhost connection and does not allow connection from other hosts. Other users are only allowed to access the host.

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.