AsteriskNow – How To Change The Default FreePBX Password
AsteriskNow is a full blow free turnkey PBX Linux distribution based on CentoOS that can be used in many different types of telephony applications. It is very easy to install and initially setup however changing the default freepbx password can be a bit challenging since there is no link or menu anywhere in the interface to do so!
The default username and password for the FreePBX database and Web frontend are freepbx/fpbx
. Having no clear way of changing this leaves a very large security hole open on your newly created PBX system! Here is how you can do it manually via the command line.
Log in as root at the command line and start the mysql command line client:
mysql
Select the mysql database:
use mysql;
Update the freepbx user password:
UPDATE user set Password=PASSWORD(‘newpass’) WHERE User=’freepbx’; flush privileges; exit
Now we need to update a few files with the new password
In /etc/amportal.conf
edit this line:
# AMPDBPASS: the password for AMPDBUSER AMPDBPASS=fpbx
In /etc/asterisk/cdr_mysql.conf
edit this line:
password = fpbx
In /etc/asterisk/extensions_additional.conf
edit this line:
AMPDBPASS = fpbx
Now restart the amportal service:
amportal restart
You should now be able to log into your FreePBX web frontend with the user freepbx and your new password.