summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9b13566)
raw | patch | inline | side by side (parent: 9b13566)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 26 Jun 2009 06:22:24 +0000 (06:22 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 26 Jun 2009 06:22:24 +0000 (06:22 +0000) |
-If php was compiles without posix functions, then the setup wasn't working.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13796 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13796 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/setup/class_setupStep_Finish.inc | patch | blob | history | |
gosa-core/setup/setup_finish.tpl | patch | blob | history |
diff --git a/gosa-core/setup/class_setupStep_Finish.inc b/gosa-core/setup/class_setupStep_Finish.inc
index 5fe91f8cee2418c980e7772fc9ed76189991bf80..a64fbcd05923e6b33d260f267773b05c56558737 100644 (file)
function execute()
{
- $info= posix_getgrgid(posix_getgid());
- $webgroup = $info['name'];
+ if(!function_exists("posix_getgrgid")){
+ $webgroup = "";
+ }else{
+ $info= posix_getgrgid(posix_getgid());
+ $webgroup = $info['name'];
+ }
/* Check if there is currently an active gosa.conf
*/
index 5b4c80ecd649a2004f8859c1ae586b856f2f0876..4f29b9cd64fe0d92cdf0f6e268346f37d8e66265 100644 (file)
<p>
{$msg2}
</p>
- <tt>
- chown root:{$webgroup} {$CONFIG_DIR}/{$CONFIG_FILE}<br>
- chmod 640 {$CONFIG_DIR}/{$CONFIG_FILE}
+
+ {if $webgroup == ""}
+{t}Depending on the user name your webserver is running on:{/t}
+<tt>
+<pre> chown root:www-data {$CONFIG_DIR}/{$CONFIG_FILE}
+ chmod 640 {$CONFIG_DIR}/{$CONFIG_FILE}
+
+or
+
+ chown root:apache {$CONFIG_DIR}/{$CONFIG_FILE}
+ chmod 640 {$CONFIG_DIR}/{$CONFIG_FILE}
+</pre>
+{else}
+<pre>
+ chown root:{$webgroup} {$CONFIG_DIR}/{$CONFIG_FILE}
+ chmod 640 {$CONFIG_DIR}/{$CONFIG_FILE}
+</pre>
+{/if}
</tt>
<p>
<input type='submit' name='getconf' value='{t}Download configuration{/t}'>