[New] Setup Settings
Posted: Sat Jun 25, 2022 4:49 am
Most configuration settings from nuconfig.php have been moved to a nuBuilder form under Setup -> Settings.
Existing setting from nuconfig.php can be imported.
Existing nuBuilder users:
Existing setting from nuconfig.php can be imported.
Existing nuBuilder users:
- Update nuBuilder (Database -> Update). Be sure to backup your database before doing this update.
- Restart the Browser
- Log in to nuBuilder, open Setup -> Settings
- Click "Import" to import settings from nuconfig.php
- Once imported, you can remove the configuration settings from nuconfig.php which should only contain the variables as shown below.
- It's important to set $nuConfigSettingsFromDB = true; in nuconfig.php
Code: Select all
// Database Settings:
$nuConfigDBHost = "127.0.0.1"; //-- Database Host / IP. You may try localhost if 127.0.0.1 does not work.
$nuConfigDBName = "nubuilder4"; //-- Database Name. You can change the name, if desired. The database must exist or must be created on your server.
$nuConfigDBUser = "root"; //-- Database User. It is strongly recommended to use a different user than root The user must exist or must be created.
$nuConfigDBPassword = ""; //-- Database Password. We strongly recommend you to use any strong password.
//-- The default username for a new MySQL installation is root, with a blank password.
$nuConfigDBEngine = "InnoDB"; //-- InnoDB or MyISAM
$nuConfigDBCollate = "utf8mb4_unicode_ci"; //-- Or utf8_general_ci etc.
$nuConfigDBCharacterSet = "utf8mb4"; //-- Or utf8 etc.
$nuConfigDBOptions = array(); //-- PDO Options: E.g. array(PDO::ATTR_PERSISTENT => true);
// Administrator Login:
$nuConfigDBGlobeadminUsername = "globeadmin"; //-- Administrator username. You can choose any username you like.
$nuConfigDBGlobeadminPassword = "nu"; //-- Administrator password. Please choose a stronger password!
// Includes:
$nuConfigIncludeJS = ''; //-- Include one or more JavaScript File(s). E.g. 'myjslib.js' or ['myjslib1.js','myjslib2.js']
$nuConfigIncludeCSS = ''; //-- Include one or more CSS File(s). E.g. 'mystyles.css' or ['mystyles1.css','mystyles2.css']
$nuConfigIncludePHP = ''; //-- Include one or more PHP File(s). E.g. '../libs/myphplib.php' or ['../libs/myphplib1.php','../libs/myphplib2.php']
// Settings
$nuConfigSettingsFromDB = true; //-- Use settings from setup->settings if set to true (default)