PHP fatal error session_start () Troubleshooting Steps _php Instance

Source: Internet
Author: User

Error message:

Fatal Error:session_start () [Function.session-start]: Failed to initialize Storage module:files (path:) in C:\usr\phpMy Admin\libraries\session.inc.php on line 75

I. Change server configuration:

1, check Error.log (apache2.2\logs) file to see if there are error reports. Not found.

2, check the value of the Session.save_handler in the php.ini is files, if not changed to files

3, check the php.ini file Session.save_path is commented, if any, then remove the front of the ";"

4, change the path behind the Save_path to an existing path, such as "D:\php\temp"

5, check the Temp folder's properties are readable and writable.

6, restart the Apache server. Ok

Change session storage path in ii.php program

Copy Code code as follows:

$sessSavePath = DirName (__file__). " /.. /cache/sessions/";
if (is_writeable ($sessSavePath) && is_readable ($sessSavePath))
{
Session_save_path ($sessSavePath);//Focus Change Session storage 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.