UnrealIRCd Panel
img/favicon.ico">
UnrealIRCd Admin Panel Configuration and Setup
Take me home!
auth_method)) ? $opts->auth_method : NULL; $auth_method_name = NULL; switch($auth_method) { case "sql_db": $auth_method_name = "SQLDB"; break; case "file_db": $auth_method_name = "FileDB"; break; } if ($auth_method) $am = new Plugin($auth_method); else { Message::Fail("Invalid parameters"); return; } if ($am->error) { Message::Fail("Couldn't load plugin \"$auth_method\": $am->error"); return; } $config["base_url"] = BASE_URL; $config["plugins"] = Array("$auth_method"); if ($auth_method == "sql_db") { $config["mysql"] = [ "host" => $opts->sql_host, "database" => $opts->sql_db, "username" => $opts->sql_user, "password" => $opts->sql_password, "table_prefix" => $opts->sql_table_prefix, ]; } generate_secrets(); /* First, write only the config file */ write_config_file(); if ($auth_method == "sql_db") { sql_db::delete_tables(); if (!sql_db::create_tables()) Message::Fail("Could not create SQL tables"); } else if ($auth_method == "file_db") { file_db::delete_db(); } $user = [ "user_name" => $opts->account_user, "user_pass" => $opts->account_password, "fname" => $opts->account_fname, "lname" => $opts->account_lname, "user_bio" => $opts->account_bio, "email" => $opts->account_email ]; create_new_user($user); $lkup = new PanelUser($opts->account_user); if (!$lkup->id) { Message::Fail("Could not create user"); return; } $lkup->add_meta('role', 'Super-Admin'); /* Enable lookups on HIBP by default */ $config['hibp'] = true; /* Now, write all the config (config.php + settings in DB) */ write_config(); ?>
The configuration file has been written. Now, log in to the panel to proceed with the rest of the installation.
Let's go!
The admin panel needs to be able to write the config file.
Please run:
sudo chown -R
And after that, refresh this webpage.
If you have any questions about this, read
the installation manual on permissions
.
Database Backend
Which database backend would you like to use?
Please choose from the available options:
File-based database (Uses local files as a database, no additional setup needed)
SQL Database (Requires an SQL database)
Please enter your SQL information.
View instructions
Hostname or IP
The hostname or IP address of your SQL server. You should use
127.0.0.1
for the same machine.
Database name
The name of the SQL database to write to and read from.
Username
The name of SQL user
Password
Table prefix
The prefix for table names (leave blank for none)
Next
Test connection
Create your account
You need an account, let's make one.
Pick a username
Pick a username! Please make sure it's at least 3 characters long, contains no spaces, and is made of only letters and numbers.
Password
Please choose a password that at least 8 characters long, contains at least one uppercase letter, one lowercase letter, one number and one symbol.
Confirm password
Email address
First name
Last name
Bio
Back
Submit
Database already contains data
×
The database already exists and contains data. If you continue then this existing data will be deleted.
Database server error
×
Unable to connect to the database.