diff options
author | Frank Karlitschek <karlitschek@kde.org> | 2011-08-07 17:58:56 +0200 |
---|---|---|
committer | Frank Karlitschek <karlitschek@kde.org> | 2011-08-07 17:58:56 +0200 |
commit | 58c2d29f8c1dfb150d96037e3b09f29dedf3df25 (patch) | |
tree | d003a5220b3331741ded945bcb19ee2257ba3d96 | |
parent | b2702c44061d73ef80b8e26d85f0921c170c3921 (diff) | |
download | nextcloud-server-58c2d29f8c1dfb150d96037e3b09f29dedf3df25.tar.gz nextcloud-server-58c2d29f8c1dfb150d96037e3b09f29dedf3df25.zip |
report the right webserver user to simplify setup and debug
-rw-r--r-- | lib/util.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php index e07400fc1fd..6518ca99df0 100644 --- a/lib/util.php +++ b/lib/util.php @@ -28,8 +28,9 @@ class OC_Util { $success=@mkdir($CONFIG_DATADIRECTORY_ROOT); if(!$success) { $tmpl = new OC_Template( '', 'error', 'guest' ); - $tmpl->assign('errors',array(1=>array('error'=>"Can't create data directory ($CONFIG_DATADIRECTORY_ROOT)",'hint'=>"You can usually fix this by setting the owner of '$SERVERROOT' to the user that the web server uses (www-data for debian/ubuntu)"))); + $tmpl->assign('errors',array(1=>array('error'=>"Can't create data directory ($CONFIG_DATADIRECTORY_ROOT)",'hint'=>"You can usually fix this by setting the owner of '$SERVERROOT' to the user that the web server uses (".exec('whoami').")"))); $tmpl->printPage(); +phpinfo(); exit; } } |