diff --git a/htdocs/filefunc.inc.php b/htdocs/filefunc.inc.php
index 78ee45de00e..c2962836fa2 100644
--- a/htdocs/filefunc.inc.php
+++ b/htdocs/filefunc.inc.php
@@ -115,6 +115,13 @@ if (!$result && !empty($_SERVER["GATEWAY_INTERFACE"])) { // If install not do
}
header("Location: ".$path."install/index.php");
+
+ /*
+ print '
';
+ print 'The conf/conf.php file was not found or is not readable by the web server. If this is your first access, click here to start the Dolibarr installation process to create it...';
+ print '
';
+ */
+
exit;
}
diff --git a/htdocs/install/index.php b/htdocs/install/index.php
index 09300a75721..a7ce50c819f 100644
--- a/htdocs/install/index.php
+++ b/htdocs/install/index.php
@@ -49,6 +49,12 @@ $formadmin = new FormAdmin(''); // Note: $db does not exist yet but we don't nee
pHeader("", "check"); // Next step = check
+if (!is_readable($conffile)) {
+ print '
';
+ print ''.$langs->trans("NoReadableConfFileSoStartInstall").'';
+}
+
+
// Ask installation language
print '
';
print '
';
@@ -61,7 +67,9 @@ print '';
print '
';
-print '
'.$langs->trans("SomeTranslationAreUncomplete").'';
+
+
+//print '
'.$langs->trans("SomeTranslationAreUncomplete").'';
// If there's no error, we display the next step button
if ($err == 0) {
diff --git a/htdocs/langs/en_US/install.lang b/htdocs/langs/en_US/install.lang
index 989f6aa9793..18a2eee941c 100644
--- a/htdocs/langs/en_US/install.lang
+++ b/htdocs/langs/en_US/install.lang
@@ -8,6 +8,7 @@ ConfFileIsNotWritable=Configuration file %s is not writable. Check permis
ConfFileIsWritable=Configuration file %s is writable.
ConfFileMustBeAFileNotADir=Configuration file %s must be a file, not a directory.
ConfFileReload=Reloading parameters from configuration file.
+NoReadableConfFileSoStartInstall=The configuration file conf/conf.php does not exists or is not reabable. We will run the installation process to try to initialize it.
PHPSupportPOSTGETOk=This PHP supports variables POST and GET.
PHPSupportPOSTGETKo=It's possible your PHP setup does not support variables POST and/or GET. Check the parameter variables_order in php.ini.
PHPSupportSessions=This PHP supports sessions.