PHP报错:Warning: session_start() [function.session-start]: open(....php5Tempsess... 的解决方法

作者:我就是个世界 发表于:2012-12-12
在ComsenzEXP的环境下安装ECShop报错:
[code]
Warning: session_start() [function.session-start]: open(..\..\PHP5\temp\sess_3c2634f12091881f7e16234628bebe3e, O_RDWR) failed: No such file or directory (2) in D:\ComsenzEXP\wwwroot\ShopLFGiant\install\index.php on line 23

Warning: session_start() [function.session-start]: open(..\..\PHP5\temp\sess_3c2634f12091881f7e16234628bebe3e, O_RDWR) failed: No such file or directory (2) in D:\ComsenzEXP\wwwroot\ShopLFGiant\install\cloud.php on line 18

Warning: Invalid argument supplied for foreach() in D:\ComsenzEXP\wwwroot\ShopLFGiant\install\cloud.php on line 41

Warning: Unknown: open(..\..\PHP5\temp\sess_3c2634f12091881f7e16234628bebe3e, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (..\..\PHP5\temp) in Unknown on line 0
[/code]

[b]解决方法:[/b] 在php.ini中把 session.save_path = "D:\ComsenzEXP\PHP5\temp" 改为这个,也就是绝对路径,主要是路径正确就对了;重起appache,一切显示正常。

分享:

扫一扫在手机阅读、分享本文

请发表您的评论