How To: Install and Compile Asterisk Certified 11 on Rackspace Cloud Centos 5
I use Rackspace for most of my cloud servers since their support is second to none. They are always very helpful in getting me answers or even going above and beyond what they technically support. So because of this I often build Asterisk servers up there to test with or even for production use. Here is an easy to follow guide on how to build an Asterisk 11 server using Centos 5 image. You can just copy and paste the commands one by one or add them to a text file and run as a script.
Note: This step by step guide is for 64bit operating systems, if you use a 32bit Centos 5 server it will fail.
yum -y update sed -i s/SELINUX=permissive/SELINUX=disabled/g /etc/selinux/config reboot
Then we need to install some packages:
yum -y install bind-utils curl-devel doxygen gcc gcc-c++ gtk+ gtk+-devel gnutls-devel httpd kernel-xen kernel-xen-devel kernel kernel-devel kernel-smp-devel kernel-smp libxml2-devel libtermcap-devel libtool-ltdl libtool-ltdl-devel make mysql mysql-server mysql-devel mysql-server-devel mysql-connector-odbc net-snmp-devel neon-devel newt-devel ncurses-devel ntp openssl-devel openssl perl-suidperl php-mysql system-config-securitylevel screen texinfo unixODBC unixODBC-devel wget reboot
Now we can do the heavy lifting of installing Asterisk, Dahdi and LibPRI.
cd /usr/src wget http://downloads.asterisk.org/pub/telephony/certified-asterisk/certified-asterisk-11.6-current.tar.gz wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz wget http://downloads.asterisk.org/pub/telephony/libpri/libpri-1.4-current.tar.gz tar zxf certified-asterisk-11.6-current.tar.gz tar zxf dahdi-linux-complete-current.tar.gz tar zxf libpri-1.4-current.tar.gz cd /usr/src/dahdi-linux-complete-* make && make install && make config cd /usr/src/libpri-1.4* make && make install cd /usr/src/certified-asterisk-11.6-* ./configure --libdir=/usr/lib64 && make menuselect && make && make install make samples make config service dahdi start service asterisk start
All done! It really is that easy 😉
thx very much you really help me