diff --git a/core/templates/installation.php b/core/templates/installation.php
index de7ff8c168cfbafd4e1c1dbb1656671fd5ed6055..7f2796a4b319e8e4fe3ac20da509bb16b9e7d177 100644
--- a/core/templates/installation.php
+++ b/core/templates/installation.php
@@ -165,7 +165,7 @@
 		<p class="infield groupbottom">
 			<label for="dbhost" class="infield" id="dbhostlabel"><?php p($l->t( 'Database host' )); ?></label>
 			<input type="text" name="dbhost" id="dbhost" placeholder=""
-				value="<?php p(OC_Helper::init_var('dbhost', 'localhost')); ?>" />
+				value="<?php p(OC_Helper::init_var('dbhost')); ?>" />
 		</p>
 	</fieldset>
 
diff --git a/lib/setup.php b/lib/setup.php
index 61ef7d22b112e9494b1edb8eae84d7ab96b3e006..741a1837cccb7f64521997a9f60ccf19fd974e53 100644
--- a/lib/setup.php
+++ b/lib/setup.php
@@ -61,7 +61,7 @@ class OC_Setup {
 				$error[] = $l->t("%s you may not use dots in the database name", array($dbprettyname));
 			}
 			if($dbtype != 'oci' && empty($options['dbhost'])) {
-				$error[] = $l->t("%s set the database host.", array($dbprettyname));
+				$options['dbhost'] = 'localhost';
 			}
 		}