mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Added some docs, update config.php.default and web installer to use mysqli by default
This commit is contained in:
@ -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;
|
||||
|
@ -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
|
||||
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user