diff --git a/htdocs/install/step1.php b/htdocs/install/step1.php
index 7235e564275..24b5dba4d01 100644
--- a/htdocs/install/step1.php
+++ b/htdocs/install/step1.php
@@ -199,6 +199,14 @@ if (!empty($main_url) && substr($main_url, dol_strlen($main_url) - 1) == "/") {
$main_url = substr($main_url, 0, dol_strlen($main_url) - 1);
}
+if (!dol_is_dir($main_dir.'/core/db/')) {
+ print '
'.$langs->trans("ErrorBadValueForParameter", $main_dir, $langs->transnoentitiesnoconv("WebPagesDirectory")).'
';
+ print '
';
+ //print $langs->trans("BecauseConnectionFailedParametersMayBeWrong").'
';
+ print $langs->trans("ErrorGoBackAndCorrectParameters");
+ $error++;
+}
+
// Test database connection
if (!$error) {
$result = @include_once $main_dir."/core/db/".$db_type.'.class.php';