[英]Codeigniter session error. I can't fix
我在codeigniter上的应用存在一些问题。
当我在localhost上访问站点时,这很好,但是当我将应用程序复制到远程服务器上时,出现404错误,打开访问站点 。
转换为:
遇到未捕获的异常
类型:异常
消息:会话:PHP进程无法写入已配置的保存路径“ / home / site / 14238 / www / web1 / system> / cache”。
文件名:/home/site/14238/www/web1/system/libraries/Session/drivers/Session_files_driver.php
行号:124
回溯:
文件:/home/site/14238/www/web1/application/controllers/Home.php行:6功能:__construct
文件:/home/site/14238/www/web1/index.php行:292功能:require_once
遇到PHP错误
严重程度:警告
消息:file_exists()[function.file-exists]:open_basedir限制有效。 文件(35183c9923cab619845ef0f478fc300e62bac6b5)不在允许的路径内:(/ home / www:/ home / site:/ usr / share / php)
文件名:drivers / Session_files_driver.php
行号:154
回溯:
遇到PHP错误
严重程度:警告
消息:fopen()[function.fopen]:open_basedir限制有效。 文件(35183c9923cab619845ef0f478fc300e62bac6b5)不在允许的路径内:(/ home / www:/ home / site:/ usr / share / php)
文件名:drivers / Session_files_driver.php
行号:156
回溯:
遇到PHP错误严重程度:警告
消息:fopen(35183c9923cab619845ef0f478fc300e62bac6b5)[function.fopen]:打开流失败:不允许操作
文件名:drivers / Session_files_driver.php
行号:156
回溯:
您应将可写权限授予/home/site/14238/www/web1/system/cache
目录
让我们开始一个接一个地修复它们:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.