Solution to the Cannotstartsessionwithouterrors problem in phpmyadmin

Source: Internet
Author: User
This article mainly introduces how to solve the problem of Cannotstartsessionwithouterrors in phpmyadmin. the environment in this article is Windows + IIS server. if you need it, refer to PHPMYADMIN and report an error.

The code is as follows:

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

The configuration file has been changed to a mess, and it has not been solved by constantly restarting IIS to restart MYSQL.

But sometimes, there is no problem. I can't figure out which side is wrong...

After that, a blind cat finally ran into a dead mouse.

This problem is caused by the permission to store the session directory.

The Internet guest account must have the permission to control the session directory.

The Internet guest account starts with IUSR.

In XP, the "security" tab cannot be found in the folder attribute options by default (right-click the folder under win2003 to set it). solution:

Folder option-View-remove the "simple file sharing" check box! Right-click the folder property, and the security option appears. Add IUSR and set its permissions (full control)

Open phpmyadmin, OK!

First, create a folder tmp in the php Directory. if you have permissions, you must add the evryone control permission if it is an ntfs partition. Otherwise, it is useless.

Second, find the session. save_path line in php. ini and set it to session. save_path = "C:/php/tmp" to remove the semicolon. Note that there are three session. save_path entries in php. ini. if you only modify one path, it still does not work.

Change the value of session. auto_start in php. ini to 1 (start). The default value is 0 (disabled ),
Finally, find in phpmyadmin, config. sample. inc. change php to config. inc. in php, find $ cfg ['blowfish _ secret'] and add the value to the next value to a combination of numbers and letters. After all the modifications, restart iis or apach to view the familiar phpmyadmin logon interface.

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.