This is an old revision of the document!


this page will give instructions to install: dahdi,asterisk,php-fpm,nginx and nginx http push module for CentOS/Redhat or Ubuntu, these modules are necessary for asterCC Commercial installation.

You could use a shell script to finish all of these jobs to save your time, click here to download asterCC Commercial installation script

CentOS and RedHat

Install new repo

  • CentOS 5.X

cd /usr/src
wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/i386/epel-release-5-4.noarch.rpm
wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/i386/ius-release-1.0-10.ius.el5.noarch.rpm
rpm -ivh epel-release-5-4.noarch.rpm ius-release-1.0-10.ius.el5.noarch.rpm
for x86_64
cd /usr/src
wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/epel-release-5-4.noarch.rpm
wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/ius-release-1.0-10.ius.el5.noarch.rpm
rpm -ivh epel-release-5-4.noarch.rpm ius-release-1.0-10.ius.el5.noarch.rpm

  • CentOS 6.X

cd /usr/src
wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/6/i386/epel-release-6-5.noarch.rpm
wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/6/i386/ius-release-1.0-10.ius.el5.noarch.rpm
rpm -ivh epel-release-6-5.noarch.rpm ius-release-1.0-10.ius.el5.noarch.rpm
for x86_64
cd /usr/src
wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/6/x86_64/epel-release-6-5.noarch.rpm
wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/6/x86_64/ius-release-1.0-10.ius.el5.noarch.rpm
rpm -ivh epel-release-6-5.noarch.rpm ius-release-1.0-10.ius.el5.noarch.rpm

  • remove the old php packages, install mysql and other packages for dahdi, asterisk etc.

yum -y remove php* 
yum -y remove asterisk*
yum -y install mailx cpan crontabs mysql-server mysql-devel glibc gcc-c++ libtermcap-devel newt newt-devel ncurses ncurses-devel libtool libxml2-devel kernel-devel subversion flex libstdc++-devel libstdc++  unzip

Install PHP-fpm

if you dont have file /etc/php.ini, try find /etc/php.ini.rpmnew and execute

cp /etc/php.ini.rpmnew /etc/php.ini

<code>
yum -y install php53u-fpm php53u-pecl-apc pcre-devel php53u-mysql sox
sed -i "s/short_open_tag = Off/short_open_tag = On/" /etc/php.ini 
sed -i "s/memory_limit = 16M /memory_limit = 128M /" /etc/php.ini 
sed -i '/^error_reporting/c error_reporting = E_ALL & ~E_DEPRECATED' /etc/php.ini
sed -i "s/user = apache/user = asterisk/" /etc/php-fpm.d/www.conf
sed -i "s/group = apache/group = asterisk/" /etc/php-fpm.d/www.conf
chkconfig php-fpm on

Install DAHDI

  • installation

cd /usr/src
wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/releases/dahdi-linux-complete-2.5.0.2+2.5.0.2.tar.gz
tar zxvf dahdi-linux-complete-2.5.0.2+2.5.0.2.tar.gz
cd dahdi-linux-complete-2.5.0.2+2.5.0.2
make
make install
make config

  • Configure and start DAHDI

/usr/sbin/dahdi_genconf
/etc/init.d/dahdi start

Install libpri

cd /usr/src
wget  http://downloads.asterisk.org/pub/telephony/libpri/releases/libpri-1.4.12.tar.gz
tar zxf libpri-1.4.12.tar.gz
cd libpri-1.4.12
make
make install

Installed asterisk

  • Installation

cd /usr/src
wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.6.2.13.tar.gz
tar zxvf asterisk-1.6.2.13.tar.gz
cd asterisk-1.6.2.13
./configure
make
make install
make config

  • Modify asterisk running user

sed -i "s/#AST_USER/AST_USER/" /etc/init.d/asterisk
sed -i "s/#AST_GROUP/AST_GROUP/" /etc/init.d/asterisk

  • enable AMI and config a user

cat > /etc/asterisk/manager.conf << EOF
[general]
enabled = yes
port = 5038
bindaddr = 0.0.0.0
displayconnects=no

[asterccuser]
secret = asterccsecret
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
read = system,call,agent
write = all
EOF

  • start asterisk

/etc/init.d/asterisk restart

  • add asterisk to startup

chkconfig asterisk on

Install lame

lame is using for mp3

cd /usr/src
wget http://sourceforge.net/projects/lame/files/lame/3.99/lame-3.99.tar.gz/download -O lame-3.99.tar.gz
tar zxvf lame-3.99.tar.gz
cd lame-3.99
./configure
make
make install
ln -s /usr/local/bin/lame /usr/bin/

Install mpg123

cd /usr/src
wget http://sourceforge.net/projects/mpg123/files/mpg123/1.13.4/mpg123-1.13.4.tar.bz2/download -O mpg123-1.13.4.tar.bz2
tar jxf mpg123-1.13.4.tar.bz2
cd mpg123-1.13.4
./configure
make
make install

Install NGINX and http push module

  • stop current http service, such as apache2

/etc/init.d/httpd stop
chkconfig httpd off

  • install nginx and http push module

cd /usr/src
wget http://nginx.org/download/nginx-1.0.9.tar.gz
wget http://pushmodule.slact.net/downloads/nginx_http_push_module-0.692.tar.gz
tar zxf nginx-1.0.9.tar.gz
tar zxf nginx_http_push_module-0.692.tar.gz
cd nginx-1.0.9
./configure --add-module=/usr/src/nginx_http_push_module-0.692 --with-http_ssl_module  --user=asterisk --group=asterisk
make
make install

  • add nginx to startup

chkconfig httpd off
wget http://astercc.org/download/nginx.zip
unzip ./nginx.zip
mv ./nginx /etc/init.d/
chmod +x /etc/init.d/nginx

  • Add to auto start

wget http://astercc.org/download/nginx.zip
unzip ./nginx.zip
mv ./nginx /etc/init.d/
chmod +x /etc/init.d/nginx
chkconfig nginx on

open your browser, enter the ip of the server , you suppose to see

Welcome to nginx!

means your nginx is working

Install ioncube module

  • download ioncube package

use command “getconf LONG_BIT” you will know your system is 32bit or 64bit

for 32 bit Linux
cd /usr/src
wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz
tar zxf ioncube_loaders_lin_x86.tar.gz
for 64 bit Linux
cd /usr/src
wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
tar zxf ioncube_loaders_lin_x86-64.tar.gz

  • install & config

mv /usr/src/ioncube /usr/local/
sed -i "/ioncube/d"  /etc/php.ini
echo "zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.3.so" >> /etc/php.ini
/etc/init.d/php-fpm start

install asterCC Commercial

en/download_and_install/system_environment_configuration.1331004637.txt.gz · Last modified: (external edit)
Recent changes RSS feed Debian Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki