diff --git a/config.php.default b/config.php.default index 1ed5d8c7e5..c6cd64075b 100755 --- a/config.php.default +++ b/config.php.default @@ -3,15 +3,15 @@ ## Have a look in includes/defaults.inc.php for examples of settings you can set here. DO NOT EDIT defaults.inc.php! ### Database config -$config['db_host'] = "localhost"; -$config['db_user'] = "USERNAME"; -$config['db_pass'] = "PASSWORD"; -$config['db_name'] = "librenms"; +$config['db_host'] = 'localhost"; +$config['db_user'] = 'USERNAME"; +$config['db_pass'] = 'PASSWORD'; +$config['db_name'] = 'librenms'; $config['db']['extension'] = 'mysqli';// mysql or mysqli ### Memcached config - We use this to store realtime usage $config['memcached']['enable'] = FALSE; -$config['memcached']['host'] = "localhost"; +$config['memcached']['host'] = 'localhost'; $config['memcached']['port'] = 11211; ### Locations - it is recommended to keep the default diff --git a/doc/Support/Configuration.md b/doc/Support/Configuration.md index 771509db6e..c6aee73cb9 100644 --- a/doc/Support/Configuration.md +++ b/doc/Support/Configuration.md @@ -24,10 +24,10 @@ Log files created by LibreNMS will be stored within this directory. These are the configuration options you will need to use to specify to get started. ```php -$config['db_host'] = "127.0.0.1"; -$config['db_user'] = ""; -$config['db_pass'] = ""; -$config['db_name'] = ""; +$config['db_host'] = '127.0.0.1'; +$config['db_user'] = ''; +$config['db_pass'] = ''; +$config['db_name'] = ''; ``` You can also select between the mysql and mysqli php extensions: diff --git a/html/install.php b/html/install.php index 232a44c12b..0754dcfaef 100644 --- a/html/install.php +++ b/html/install.php @@ -369,10 +369,10 @@ $config_file = <<<"EOD" ## Have a look in defaults.inc.php for examples of settings you can set here. DO NOT EDIT defaults.inc.php! ### Database config -\$config\['db_host'\] = \"$dbhost\"; -\$config\['db_user'\] = "$dbuser"; -\$config\['db_pass'\] = "$dbpass"; -\$config\['db_name'\] = "$dbname"; +\$config\['db_host'\] = '$dbhost'; +\$config\['db_user'\] = '$dbuser'; +\$config\['db_pass'\] = '$dbpass'; +\$config\['db_name'\] = '$dbname'; \$config\['db'\]\['extension'\] = "mysqli";// mysql or mysqli ### Memcached config - We use this to store realtime usage