diff --git a/e107_languages/English/lan_installer.php b/e107_languages/English/lan_installer.php
index 8def8c2eb..e666cb5bc 100644
--- a/e107_languages/English/lan_installer.php
+++ b/e107_languages/English/lan_installer.php
@@ -180,5 +180,7 @@ define("LANINS_121", "e107_config.php is not an empty file");
define("LANINS_122", "You might have an existing installation");
define("LANINS_123", "Optional: Your public name or alias. Leave blank to use the user name");
define("LANINS_124", "Please choose a password of at least 8 characters");
+define("LANINS_125", "e107 has been installed successfully!");
+define("LANINS_126", "For security reasons you should now set the file permissions on the e107_config.php file back to 644.");
diff --git a/install_.php b/install_.php
index a0b5f516b..86f4866f2 100644
--- a/install_.php
+++ b/install_.php
@@ -1153,7 +1153,8 @@ class e_install
$alertType = 'success';
$this->logLine('Tables created successfully');
$this->import_configuration();
- $page = nl2br(LANINS_069)."
";
+ $page = nl2br(LANINS_125)."
";
+ $page .= (is_writable('e107_config.php')) ? "
".str_replace("e107_config.php","e107_config.php",LANINS_126) : "";
if($htaccessError)
{
@@ -1168,6 +1169,7 @@ class e_install
$this->logLine('Stage 8 completed');
e107::getMessage()->reset();
+ e107::getMessage()->resetSession();
}
/**
@@ -1636,6 +1638,7 @@ class e_install
return nl2br(LANINS_070);
}
@fclose ($fp);
+ @chmod($e107_config,0644); // correct permissions.
return false;
}