summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xindex.php4
-rw-r--r--install.php3
2 files changed, 7 insertions, 0 deletions
diff --git a/index.php b/index.php
index 468be6552..2bf26537b 100755
--- a/index.php
+++ b/index.php
@@ -191,6 +191,10 @@ if (false && defined('ENVIRONMENT'))
define('APPPATH', BASEPATH.$application_folder.'/');
}
+ if (getenv("HOME") == "") {
+ putenv('HOME='.FCPATH);
+ }
+
/*
* --------------------------------------------------------------------
* LOAD THE BOOTSTRAP FILE
diff --git a/install.php b/install.php
index c80626ffe..48291276a 100644
--- a/install.php
+++ b/install.php
@@ -8,6 +8,9 @@ $errors = "";
define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME));
define('FCPATH', str_replace(SELF, "", __FILE__));
+if (getenv("HOME") == "") {
+ putenv('HOME='.FCPATH);
+}
if (file_exists(FCPATH."is_installed")) {
exit("already installed\n");