dongyan3562 2015-09-18 12:07
浏览 78
已采纳

Codeigniter会话错误。 我无法解决

I have some problem with my app on codeigniter.

When I'm visiting the site on the localhost it's fine, but when I'm copy application to the remote server I get 404 error open visiting the site.

this translates to :

An uncaught Exception was encountered

Type: Exception

Message: Session: Configured save path '/home/site/14238/www/web1/system>/cache' is not writable by the PHP process.

Filename: /home/site/14238/www/web1/system/libraries/Session/drivers/Session_files_driver.php

Line Number: 124

Backtrace:

File: /home/site/14238/www/web1/application/controllers/Home.php Line: 6 Function: __construct

File: /home/site/14238/www/web1/index.php Line: 292 Function: require_once

A PHP Error was encountered

Severity: Warning

Message: file_exists() [function.file-exists]: open_basedir restriction in effect. File(35183c9923cab619845ef0f478fc300e62bac6b5) is not within the allowed path(s): (/home/www:/home/site:/usr/share/php)

Filename: drivers/Session_files_driver.php

Line Number: 154

Backtrace:


A PHP Error was encountered

Severity: Warning

Message: fopen() [function.fopen]: open_basedir restriction in effect. File(35183c9923cab619845ef0f478fc300e62bac6b5) is not within the allowed path(s): (/home/www:/home/site:/usr/share/php)

Filename: drivers/Session_files_driver.php

Line Number: 156

Backtrace:
A PHP Error was encountered

Severity: Warning

Message: fopen(35183c9923cab619845ef0f478fc300e62bac6b5) [function.fopen]: failed to open stream: Operation not permitted

Filename: drivers/Session_files_driver.php

Line Number: 156

Backtrace:

  • 写回答

2条回答 默认 最新

  • doutuanxiao4619 2015-09-18 12:51
    关注

    You should give the writable permission to /home/site/14238/www/web1/system/cache directory

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 目详情-五一模拟赛详情页
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?
  • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line