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:

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

Lets start fixing them one by one :)

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