" . mysqli_connect_error(); } else { $sql = "SELECT * FROM users LIMIT 1"; if(mysqli_query($test_db,$sql)) { $stage = 3; $msg = "It appears that the database is already setup so have moved onto stage $stage"; } } } elseif($stage == "4") { // Now check we have a username, password and email before adding new user if(empty($add_user) || empty($add_pass) || empty($add_email)) { $stage = 4; $msg = "You haven't entered enough information to add the user account, please check below and re-try"; } } elseif($stage == "6") { // If we get here then let's do some final checks. if(!file_exists("../config.php")) { // config.php file doesn't exist. go back to that stage $msg = "config.php still doesn't exist"; $stage = "5"; } } if(empty($stage)) { $stage = '0'; } $total_stages = 6; $stage_perc = $stage / $total_stages * 100; $complete = 1; ?> <?php echo($config['page_title_prefix']); ?>

Welcome to the install

Stage of complete

% Complete
Checking PHP module support
"); if($ext_loaded == 'no') { echo(""); } else { echo(""); } echo(""); } // Check for pear install require_once 'System.php'; if(class_exists('System') === true) { $ext_loaded = 'yes'; $row_class = 'success'; } else { $ext_loaded = 'no'; $row_class = 'danger'; } echo(" "); if($ext_loaded == 'no') { echo(""); } else { echo(""); } echo(""); ?>
Module Installed Comments
$extension $ext_loadedapt-get install php5-$extension / yum install php-$extension
pear $ext_loadedapt-get install php5-$extension / yum install php-$extension
Importing MySQL DB
If you don't see any errors or messages above then the database setup has been successful.
We couldn't create the config.php file, please create this manually before continuing by copying the below into a config.php in the root directory of your install (typically /opt/librenms/)
"); echo("
<?php\n".stripslashes($config_file)."
"); } else { $config_file = stripslashes($config_file); fwrite($conf,$config_file); echo("
The config file has been created
"); } } else { echo("
We couldn't create the config.php file, please create this manually before continuing by copying the below into a config.php in the root directory of your install (typically /opt/librenms/)
"); echo("
<?php\n".stripslashes($config_file)."
"); } } ?>
User has been added successfully
"); $proceed = 0; } else { echo("
User hasn't been added, please try again
"); } } else { echo("
User $add_user already exists!
"); } } else { echo("
Auth module isn't loaded
"); } ?>
Thank you for setting up LibreNMS, you can now click here to login to your new install.