FreePBX 13 Installation Problems

Installation is being performed with:

./install --dbengine=“mysql” --dbname=“asterisk” --cdrdbname=“asteriskcdrdb” --dbuser=“root” --dbpass="${ASTERISK_DB_PW}" --user=“asterisk” --group=“asterisk” --webroot="/var/www/html" --no-interaction
fwconsole ma updateall

FreePBX 13 is coming up in Developer mode with ‘Apply Config’ enabled. Clicking ‘Apply Config’ initiates a reload and it goes away. I don’t have this problem with similar FreePBX 2.11 and 12 installs.

Despite the ‘fwconsole ma updateall’ following ./install, and an ‘Up to date.’ response, the dashboard shows:

Critical Module “FreePBX Framework” is unsigned, re-download immediately

Forcing an update of Framework from Module Admin clears the problem. It appears the Framework contained in the base install is unsigned AND is not being updated by ‘fwconsole ma updateall’.

Note that this problem STILL hasn’t been fixed.
I just built a fresh install, and had to do the same thing.

Please document what steps you are following

Okay, I’m installing on the latest Raspbian on a Raspberry Pi B.
(Note: All “http” prefixes removed since I’m not allowed to post links)
Generally following the instructions at

My notes on the commands I’ve run, and the steps I’ve done are below.
Note that my attempt to force an update of the FreePBX Framework module failed. (error at the end of the msg)

Based on

Install Raspbian via NOOBS
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install mysql-server
sudo apt-get install mysql-client

    set password for root user

sudo passwd root

    switch to root user

sudo -i

apt-get install linux-headers-3.18.0-trunk-rpi
apt-get -f install
apt-get install -y openssh-server apache2 bison flex php5 php5-curl php5-cli php5-mysql php-pear php-db php5-gd curl sox libncurses5-dev libssl-dev libmysqlclient-dev mpg123 libxml2-dev libnewt-dev sqlite3 libsqlite3-dev pkg-config automake libtool autoconf git subversion unixodbc-dev uuid uuid-dev libasound2-dev libogg-dev libvorbis-dev libcurl4-openssl-dev libical-dev libneon27-dev libsrtp0-dev libspandsp-dev libmyodbc

    reboot system

sudo -i

git clone
git clone

cd /usr/src/pjproject
./configure --enable-shared --disable-sound --disable-resample --disable-video --disable-opencore-amr
make dep
make install

cd /usr/src/jansson
autoreconf -i
make install

cd /usr/src
tar xvfz asterisk-12-current.tar.gz
cd asterisk-*
make menuselect

BEFORE running "make" to compile Asterisk, edit ./include/asterisk/autoconfig. and open it with vi or nano. It will be in the "include/asterisk/" folder.
Find the 2 lines:

/* Define to 1 if PJPROJECT has the PJSIP Transaction Group Lock Support feature. */

Change the second line to:


make install
make config

cd /var/lib/asterisk/sounds
tar xfz asterisk-extra-sounds-en-wav-current.tar.gz
rm -f asterisk-extra-sounds-en-wav-current.tar.gz

Wideband Audio download

tar xfz asterisk-extra-sounds-en-g722-current.tar.gz
rm -f asterisk-extra-sounds-en-g722-current.tar.gz

Seems to be missing a step. So try
cd ~

tar vxfz freepbx-12.0-latest.tgz
cd freepbx

useradd -m asterisk
chown asterisk. /var/run/asterisk
chown -R asterisk. /etc/asterisk
chown -R asterisk. /var/{lib,log,spool}/asterisk
chown -R asterisk. /usr/lib/asterisk
rm -rf /var/www/html

sed -i ‘s/(^upload_max_filesize = )./\120M/’ /etc/php5/apache2/php.ini
cp /etc/apache2/apache2.conf /etc/apache2/apache2.conf_orig
sed -i 's/^(User|Group).
/\1 asterisk/’ /etc/apache2/apache2.conf
service apache2 restart

cat >> /etc/odbcinst.ini << EOF
Description = ODBC for MySQL
Driver = /usr/lib/arm-linux-gnueabihf/odbc/
Setup = /usr/lib/arm-linux-gnueabihf/odbc/
FileUsage = 1


cat >> /etc/odbc.ini << EOF
Description=MySQL connection to ‘asteriskcdrdb’ database


export ASTERISK_DB_PW=dd if=/dev/urandom bs=1 count=32 2>/dev/null | base64 - | cut -c2-18

mysqladmin -u root create asterisk
mysqladmin -u root create asteriskcdrdb

mysql -u root -e "GRANT ALL PRIVILEGES ON asterisk.* TO [email protected] IDENTIFIED BY ‘${ASTERISK_DB_PW}’;"
mysql -u root -e "GRANT ALL PRIVILEGES ON asteriskcdrdb.* TO [email protected] IDENTIFIED BY ‘${ASTERISK_DB_PW}’;"
mysql -u root -e “flush privileges;”

./start_asterisk start
./install_amp --installdb --username=asteriskuser --password=${ASTERISK_DB_PW}
amportal chown
amportal a ma installall
amportal a reload
amportal a ma refreshsignatures
amportal chown

Then needed to allow overrides in Apache configuration
nano /etc/apache2/apache2.conf
find the “/var/www” section, and change “AllowOveride None” to “AllowOverride All”

Now you can start using FreePBX.

Once FreePBX is up and running you will need to force a refresh of the “FreePBX Framework”.
Well, this failed with a "Error(s) installing framework: Error
updating database. Command was: UPDATE modules SET version='’
WHERE modulename = ‘framework’; error was: DB Error: no database
selected "

Ok but this thread is talking about FreePBX 13 and according to the steps you posted you are doing this on 12. Pretty different cases here.

Sorry, didn’t notice the specific version. Just that I ran into the same problem.
So, FreePBX 13 has the same bug that FreePBX 12 has.
I would have hoped that the stable build would have had this fixed.

No this was definitely fixed in FreePBX 13 which is why this thread is over 4 months old, AND we worked with this poster offline (Ron Raikes)

Please also take note of this comment from the OP

Well, with the current Free PBX 12, the bug does still exist, as I did get this problem.

That/this would most likely be a bug in the installer. Since it can be fixed by redownloading framework and because the installer was rewritten in 13 we aren’t going to address this in 12.