Cannot start session without errors error resolution in PHP Web site

Source: Internet
Author: User
The following error occurred in the PHP Web site:

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

The solution is as follows:

Locate the PHP config file php.ini find Session.save_path, and remove the comment symbol from the session.save_path=/var/lib/php5 sentence.

If it does not work, change the value of Session.auto_start to 1 (start), the default is 0 (disabled) This error is generally due to the memory path of the session file is not writable, under Linux is generally the path of the permissions problem.

Under Windows Session.save_path must be set to a path that can be read and written, such as D:/tmp.

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