From 58c2d29f8c1dfb150d96037e3b09f29dedf3df25 Mon Sep 17 00:00:00 2001 From: Frank Karlitschek Date: Sun, 7 Aug 2011 17:58:56 +0200 Subject: [PATCH] report the right webserver user to simplify setup and debug --- lib/util.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/util.php b/lib/util.php index e07400fc1f..6518ca99df 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; } }