]> source.dussan.org Git - nextcloud-server.git/commitdiff
report the right webserver user to simplify setup and debug
authorFrank Karlitschek <karlitschek@kde.org>
Sun, 7 Aug 2011 15:58:56 +0000 (17:58 +0200)
committerFrank Karlitschek <karlitschek@kde.org>
Sun, 7 Aug 2011 15:58:56 +0000 (17:58 +0200)
lib/util.php

index e07400fc1fdc4fa650c6c1caaffd41f9e7f97037..6518ca99df0e9752a6495fa1525630461b668050 100644 (file)
@@ -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;
                        }
                }