Added some docs, update config.php.default and web installer to use mysqli by default

This commit is contained in:
laf
2015-08-09 14:36:31 +00:00
parent 4b49c148b6
commit 880cccf57b
3 changed files with 18 additions and 0 deletions

View File

@ -7,6 +7,7 @@ $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;

View File

@ -19,6 +19,22 @@ $config['log_dir'] = "/opt/librenms/logs";
```
Log files created by LibreNMS will be stored within this directory.
#### Database config
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'] = "";
```
You can also select between the mysql and mysqli php extensions:
```php
$config['db']['extension'] = 'mysqli';
```
#### Progams

View File

@ -352,6 +352,7 @@ $config_file = <<<"EOD"
\$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
\$config\['memcached'\]\['enable'\] = FALSE;