itlife365分享APMserv的session_start错误解决办法Failed to initialize storage module: files (path: )

itlife365分享APMserv的session_start错误解决办法
begin...
使用APMServ搭建的环境,原本好好的程序,只是因为添加了虚拟目录,路径不一样而已,却莫名的出现seeion_start()的错误,如本人在调试程序时出现下面的错误提示:
Warning: Cannot modify header information - headers already sent by (output started at D:\mysoft\git_local\iCommunity\iCommunity\admin.php:1) in D:\mysoft\git_local\iCommunity\iCommunity\admin.php on line 11

Fatal error: session_start() [<a href='function.session-start'>function.session-start</a>]: Failed to initialize storage module: files (path: ) in D:\mysoft\git_local\iCommunity\iCommunity\ThinkPHP\Common\functions.php on line 566

Failed to initialize storage module: files (path: )原因在于apmserv默认的PHP设置上session的存储路径是关闭的,解决方法如下:
打开AMPServ的PHP.INI文件设置,修改:
;session.save_path = "/tmp"
原来是这样设置的,改成:
session.save_path = "D:\mysoft\APMServ5.2.6\tmp\sessiondata"//这里的为APMserv的路径
然后重新启动APMServ,一切OK,不会在报session_start()
end...

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

«    2025年2月    »
12
3456789
10111213141516
17181920212223
2425262728
搜索
标签列表
网站分类
最新留言
    文章归档
    友情链接

    Powered By Z-BlogPHP 1.7.3

    Copyright Your WebSite.Some Rights Reserved.闽ICP备11018667号-2