Unable to create the session in the event of an error, check the PHP or Web server logs and properly configure the PHP installation (win+linux) _php Tutorial

Source: Internet
Author: User
Workaround under Windows:

Check for the existence of this directory or whether the directory has write permissions for everyone or authenticated users by locating the path to the Session.save_path = "" of php.ini. It's generally possible.

How to solve Linux:

Updated PHP today, the results of the configuration of the phpMyAdmin login to appear "Unable to create a session in the event of an error, please check the PHP or Web server logs, and properly configure the PHP installation." "Error.

Cause of Error:

PHP Update, overwriting the original/var/lib/php/session permissions, resulting in Apache users can not write session, resulting in this error.

Workaround:
Execution: #chown-R root:username/var/lib/php/session

Where username is the Apache hosting user, my Apache, so the command executed is:
#chown-R root:apache/var/lib/php/session

If the error message also appears at this point, it is recommended to do:
#chmod-R 777/var/lib/php/session

Afraid 777 of the authority is too large, testing 770, 766, 776 can not solve the above problems, had to give 777 permission.
Do not know if you are trying to use the time there will be security risks, first note this position.

http://www.bkjia.com/PHPjc/325276.html www.bkjia.com true http://www.bkjia.com/PHPjc/325276.html techarticle Workaround under Windows: Check for the existence of this directory or whether the directory has write permissions for everyone or authenticated users by looking for the path to PHP.ini's Session.save_path = "" ...

  • 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.