Fatal error session_start of Error Resolution Steps in PHP
- 2021-07-10 19:12:05
- OfStack
Error message:
Fatal error: session_start() [function.session-start]: Failed to initialize storage module: files (path: ) in C:\usr\phpMyAdmin\libraries\session.inc.php on line 75
I. Change server configuration:
1. Check the error. log (Apache2.2\ logs) file for error reports. Not found.
2. Check whether the value of session.save_handler in php. ini is files, if not files
3. Check whether session.save_path is annotated in php. ini file, and if so, remove the preceding ";".
4. Change the path after save_path to the existing path, such as "D:\ php\ temp"
5. Check whether the properties of temp folder are readable and writable.
6. Restart the APACHE server. OK
Change session storage path in II. php program
$sessSavePath = dirname(__FILE__). " /../cache/sessions/ " ;
if(is_writeable($sessSavePath) && is_readable($sessSavePath))
{
session_save_path($sessSavePath);// Focus Change session Storage path
}