diff options
author | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-02-04 15:32:01 +0100 |
---|---|---|
committer | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-02-04 15:32:01 +0100 |
commit | 0a113600f7c3374c9c0840a8ec6bdae2d754a236 (patch) | |
tree | 954071e545866ca2665d3e2cbcb0f4dc1368dad3 | |
parent | 5bf7791b4212c6dba2ce7289841c71f8177cfa3f (diff) | |
download | nextcloud-server-0a113600f7c3374c9c0840a8ec6bdae2d754a236.tar.gz nextcloud-server-0a113600f7c3374c9c0840a8ec6bdae2d754a236.zip |
in case file based session handling in enabled - we need to make sure the configured folder is writable
-rwxr-xr-x | lib/util.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/util.php b/lib/util.php index e8057abe9ae..45e594afd6b 100755 --- a/lib/util.php +++ b/lib/util.php @@ -268,6 +268,17 @@ class OC_Util { $web_server_restart= false; } + $handler = ini_get("session.save_handler"); + if($handler == "files") { + $tmpDir = session_save_path(); + if($tmpDir != ""){ + if(!@is_writable($tmpDir)){ + $errors[]=array('error' => 'The temporary folder used by PHP to save the session data is either incorrect or not writable! Please check : '.session_save_path().'<br/>', + 'hint'=>'Please ask your server administrator to grant write access or define another temporary folder.'); + } + } + } + if($web_server_restart) { $errors[]=array('error'=>'PHP modules have been installed, but they are still listed as missing?<br/>', 'hint'=>'Please ask your server administrator to restart the web server.'); } |