时时商务社区
标题:
PHP中Fatal error session_start()错误解决步骤
[打印本页]
作者:
新格网络
时间:
2018-2-14 05:55
错误信息:
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.更改服务器配置:
1、检查error.log(Apache2.2\logs)文件,查看是否有错误报告。未发现。
2、检查php.ini中的session.save_handler的值是否为files,如果不是改为files
3、检查php.ini文件中session.save_path是否被注释了,如果有,则去掉前面的”;”。
4、将save_path后面的路径改成已有的路径,比如”D:\php\temp”
5、检查temp文件夹的属性是否可读可写。
6、重启APACHE服务器。OK
II.php 程序中 改变session存储路径
[U]复制代码[/U] 代码如下:
$sessSavePath = dirname(__FILE__).”/../cache/sessions/”;
if(is_writeable($sessSavePath) && is_readable($sessSavePath))
{
session_save_path($sessSavePath);//重点 改变session存储路径
}
您可能感兴趣的文章:
PHP捕获Fatal error错误的方法
Windows平台的 PHP 报错 Fatal error: Class COM not found in 的解决方法
php使用ZipArchive提示Fatal error: Class ZipArchive not found in的解决方法
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2611816 bytes)
php运行提示:Fatal error Allowed memory size内存不足的解决方法
ThinkPHP提示错误Fatal error: Allowed memory size的解决方法
PHP中使用register_shutdown_function函数截获fatal error示例
解决PHP程序运行时:Fatal error: Maximum execution time of 30 seconds exceeded in的错误提示
解决fatal:remote error:You can''t push to git://github.com/username/*.git问题的办法
Fatal: the Postfix mail system is already running 解决办法
欢迎光临 时时商务社区 (http://bbs.4435.cn/)
Powered by Discuz! X3.2