Changed config db options from double quotes to single

This commit is contained in:
laf
2015-09-21 13:23:09 +00:00
parent 573ce88766
commit 8980bbc4e3
3 changed files with 13 additions and 13 deletions

View File

@ -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

View File

@ -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:

View File

@ -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