顯示的錯誤訊息為:"Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly",使用不同的瀏覽器試試看,我之前遇到問題時用Chrome會一直跳回登入頁面,用IE則會出現錯誤訊息。
解決辦法為更改PHP之配置設定檔"php.ini",修改前請先停止Apache伺服器的運作,
- 找到並修改:"session.auto_start = 1"
- 若安裝路徑為"C:\PHP",新增資料夾"C:\PHP\tmp"
- 修改設定路徑為:session.save_path="C:\PHP\tmp"
- 重新啟動伺服器即可正常登入
session.auto_start = 1 session.save_path = "C:\PHP\tmp"
No comments:
Post a Comment