How to install AsteriskNow with Freepbx on Centos 6 VPS

Written by admin on November 22, 2014. Posted in Asterisk, Freepbx

It is a little complex to install freepbx and asterisk from scratch on a vps. However installing the AsteriskNow packagees ensure a smooth and simple installation procedure. In this tutorial we are going to be installing Freepbx 2.11 and AsteriskNow.

 

Installing asterisk now

# yum -y install dnsmasq 

# rpm -Uvh http://packages.asterisk.org/centos/6/current/i386/RPMS/asterisknow-version-3.0.0-1_centos6.noarch.rpm

# yum -y update

# yum -y install asterisk asterisk-configs --enablerepo=asterisk-11

 #  yum -y install dahdi-linux dahdi-tools libpri
Installing Freepbx

# yum -y install gcc gcc-c++ wget bison mysql-devel mysql-server php php-mysql php-process php-pear php-mbstring tftp-server httpd make ncurses-devel libtermcap-devel sendmail sendmail-cf caching-nameserver sox newt-devel libxml2-devel libtiff-devel php-gd audiofile-devel gtk2-devel subversion nano kernel-devel selinux-policy sqlite-devel openssl-devel

***Install CDR ODBC required packages

# yum -y  install libtool-ltdl-devel unixODBC unixODBC-devel mysql-connector-odbc

***Install optional packages

****chan_gtalk, chan_motif, and res_xmpp will not compile unless iksemel-devel and it's dependencies are installed. If you plan to use Google Voice ****you will need to install this. For CentOS 6, iksemel is in the EPEL repository.

#rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
yum -y install iksemel-devel

****Install pear DB

****Don't worry about the warning message.

# pear install db

# yum -y install asterisk-odbc php-pear-DB asterisk-sounds-extra-en-gsm
# nano /usr/sbin/safe_asterisk

Find the line with TTY=9 and comment it out like this #TTY=9
# /usr/sbin/safe_asterisk
# rpm -Uvh http://packages.asterisk.org/centos/6/current/x86_64/RPMS/freepbx-2.11.0-1_centos6.x86_64.rpm

# amportal chown /etc/dahdi/modules

# amportal chown /etc/dahdi/system.conf

Navigate to http://youripaddress  and enter your login credentials. Then login with those credentials