mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	Merge pull request #1948 from laf/config-quotes
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
| @@ -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: | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user