Howto Debian Jessie 8 Asterisk 11 freepbx12

Load debian 8 , note I used this as a reference

apt-get install -y build-essential linux-headers-uname -r openssh-server apache2 mysql-server
mysql-client 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

///make sure to note your mysql root password you will need this later

cd /usr/src
git clone
git clone
cd /usr/src
tar xvfz freepbx-12.0-latest.tgz

cd /usr/src
tar xvfz dahdi-linux-complete-current.tar.gz
cd dahdi-linux-complete-*
make all && make install && make config

cd /usr/src
cd pjproject
CFLAGS=’-DPJ_HAS_IPV6=1’ ./configure --enable-shared --disable-sound --disable-resample --disable-video --disable-opencore-amr
make dep && make && make install

cd /usr/src
tar vxfz jansson.tar.gz
cd jansson-*
autoreconf -i
./configure && make && make install

cd /usr/src
cd /usr/src/certified-asterisk-11.6-cert11*
make menuselect
///select your sound files in the codecs you think you will use I use gsm and g729 and of course Ulaw so I load hold sounds and extra in these codecs
make && make install && make config

///rootmysqlpass is your mysql root password
///pass4astusr would be your asteriskuser password you want to use

mysqladmin -uroot -prootmysqlpass create asterisk
mysqladmin -uroot -prootmysqlpass create asteriskcdrdb
mysql -uroot -prootmysqlpass -e "GRANT ALL PRIVILEGES ON asterisk.* TO [email protected] IDENTIFIED BY ‘pass4astusr’"
mysql -uroot -prootmysqlpass -e "GRANT ALL PRIVILEGES ON asteriskcdrdb.* TO [email protected] IDENTIFIED BY ‘pass4astusr’"
mysql -uroot -prootmysqlpass -e “flush privileges;”

cd /usr/src/freepbx
./start_asterisk start
./install_amp --installdb --username=asteriskuser --password=astJku88
amportal chown
amportal a reload
amportal a ma refreshsignatures
amportal chown

now login to the http://yourip

and go update your modules in module admin leave the asterisk modules alone
i find loading all modules it gets messy just install what you need and process then install process
might have to do this a bit to get each module you want getting the requirements just right. beyond that then hit your apply button after you feel you have everything.

next secure it down with some iptables or scripts beyond the scope of this howto