Warning appears on TP frame Session_Start () Open failed Permission denied (13) error

Source: Internet
Author: User

tp3.2 in the version prior to 5.6 does not appear this problem, in the php5.6 environment, there is a problem that can not read the session, and reported the above type of warning,

Error Reason: report open session file error, to TP Source view, try Session_Start ();

This means that the session file is opened without permission;

This is because the default save directory for the session is below/tmp;

Have no access to this file;

Of course, you can modify the permissions for this directory;

The best solution is as follows:

Create a folder in the directory where you want to save the session Sess (this name is arbitrary, just to save the session, such as "/usr/local/sess");

Then give the file read and write execution permissions (Chmod-r 777/usr/local/sess);

Then open the php.ini;

Find Session.save_path;

Modified into session.save_path= "/usr/local/sess";

Restart the server at the end.

Warning appears on TP frame Session_Start () Open failed Permission denied (13) error

Related Article

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.