report the right webserver user to simplify setup and debug
This commit is contained in:
parent
b2702c4406
commit
58c2d29f8c
|
@ -28,8 +28,9 @@ class OC_Util {
|
||||||
$success=@mkdir($CONFIG_DATADIRECTORY_ROOT);
|
$success=@mkdir($CONFIG_DATADIRECTORY_ROOT);
|
||||||
if(!$success) {
|
if(!$success) {
|
||||||
$tmpl = new OC_Template( '', 'error', 'guest' );
|
$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();
|
$tmpl->printPage();
|
||||||
|
phpinfo();
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue