report the right webserver user to simplify setup and debug

This commit is contained in:
Frank Karlitschek 2011-08-07 17:58:56 +02:00
parent b2702c4406
commit 58c2d29f8c
1 changed files with 2 additions and 1 deletions

View 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;
}
}