使用APMserv5.2.6搭建的環(huán)境,會(huì)莫名的出現(xiàn)seeion_start()的錯(cuò)誤。 調(diào)試iWebMall程序時(shí)出現(xiàn)下面的錯(cuò)誤提示:Warning: session_start() [function.session-start]: open_basedir restriction in effect. File(C:/Windows/TEMP/) is not within the allowed path(s): (F:/APMServ5.2.6/www/htdocs/;F:/APMServ5.2.6/tmp/uploadtemp/;) in F:/APMServ5.2.6/www/htdocs/foundation/asession.php on line 9Fatal error: session_start() [<a href='function.session-start'>function.session-start</a>]: Failed to initialize storage module: files (path: ) in F:/APMServ5.2.6/www/htdocs/foundation/asession.php on line 9APMserv5.2.6默認(rèn)的PHP設(shè)置上session的存儲(chǔ)路徑是關(guān)閉的,解決方法如下:打開(kāi)APMserv5.2.6的PHP.INI文件設(shè)置,修改:;session.save_path = "/tmp"原來(lái)是這樣設(shè)置的,改成:session.save_path = "F:/APMServ5.2.6/tmp/sessiondata" //這里的為APMserv的路徑重啟APMserv5.2.6