Unless your server is physically accessible to folks you don't trust, using the default passwords for MySQL and the Asterisk Manager does not create a risk since you must use the passwords from your
PBX in a Flash server to gain access.
If you'd like to eliminate the warning messages which appear on the FreePBX System Status display
in version 2.3.1.3 only, here's how.
Log into your server as root and (carefully) edit the following files and comment out the lines shown below using double-hash (//) marks at the beginning of each line:
/var/www/html/admin/header.php: lines 132, 133, 134, and 136
|
Code:
|
// default password check
$nt = notifications::create($db);
//if ($amp_conf['AMPMGRPASS'] == $amp_conf_defaults['AMPMGRPASS'][1]) {
// $nt->add_warning('core', 'AMPMGRPASS', _("Default Asterisk Manager Password Used"), _("You are using the default Asterisk Manager$
//} else {
$nt->delete('core', 'AMPMGRPASS');
//} |
/var/www/html/admin/common/db_connect.php: lines 64, 65, 66, and 68
|
Code:
|
// Now send or delete warning wrt to default passwords:
//
$nt = notifications::create($db);
//if ($amp_conf['AMPDBPASS'] == $amp_conf_defaults['AMPDBPASS'][1]) {
// $nt->add_warning('core', 'AMPDBPASS', _("Default SQL Password Used"), _("You are using the default SQL password that is widely kn$
//} else {
$nt->delete('core', 'AMPDBPASS');
//} |
Refresh your browser on the FreePBX System Status page after making all the changes to each file to make sure you commented out the correct lines!!