From bdca04563c722c689b072ad96d81751e83782195 Mon Sep 17 00:00:00 2001 From: Mohammad Al-Shami Date: Mon, 11 May 2015 00:48:38 +0300 Subject: [PATCH] Add logic to handle the case where config.php cannot be written for some reason --- html/install.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/html/install.php b/html/install.php index 09ff7922f..1c625fc00 100644 --- a/html/install.php +++ b/html/install.php @@ -422,6 +422,9 @@ EOD; fwrite($conf,$config_file); echo("
The config file has been created
"); } + } else { + echo("
We couldn't create the config.php file, please create this manually before continuing by copying the below into a config.php in the root directory of your install (typically /opt/librenms/)
"); + echo("
<?php\n".stripslashes($config_file)."
"); } } ?> @@ -549,3 +552,4 @@ elseif($stage == "6") +