Every day is wonderful

分享与创新 并大胆的去尝试新鲜事物。。。。

关于APMServ5.2.6 session_start()错误的解决方法

在使用APMServ5.2.6的时候出现以下”session_start()”这种问题,本人经过测试将这个错误的解决方法分享给大家!

Warning: session_start() [function.session-start]: open_basedir restriction in effect. File(C:\Windows\TEMP\) is not within the allowed path(s): (D:/wwwroot/xxxxxxxxx/;D:/APMServ5.2.6/tmp/uploadtemp/;) in D:\wwwroot\xxxxxxxxx\index.php on line 2

Fatal error: session_start() [function.session-start]: Failed to initialize storage module: files (path: ) in D:\wwwroot\xxxxxxxx\index.php on line 2

解决方法:

1.找到php.ini这个配置文件,open_basedir本来就是被注释掉的现在去掉”;”

2.和session.save_path=D:\APMserv\APMServ5.2.6\tmp\sessiondata前面的“;”

3.将APMServ服务重新启动下即可!

点赞

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注