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

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
    doutuanxiao4619 2015-09-18 12:51
    已采纳

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

    点赞 评论
  • dongliu1883
    dongliu1883 2015-09-18 13:22

    Lets start fixing them one by one :)

    • First make sure your webserver user has the write access to your application's cache directory
    点赞 评论

相关推荐