This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:download_and_install:system_environment_configuration [2012/07/06 02:05] – [install nesseary packages] solo | en:download_and_install:system_environment_configuration [2013/02/12 02:36] (current) – removed solo | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | this page will give instructions to install: dahdi, | ||
| - | |||
| - | You could use a shell script to finish all of these jobs to save your time, click here to download [[http:// | ||
| - | |||
| - | ======CentOS and RedHat====== | ||
| - | ====Install new repo==== | ||
| - | * CentOS 5.X | ||
| - | < | ||
| - | cd /usr/src | ||
| - | wget http:// | ||
| - | wget http:// | ||
| - | 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:// | ||
| - | wget http:// | ||
| - | 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:// | ||
| - | wget http:// | ||
| - | 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:// | ||
| - | wget http:// | ||
| - | 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++ | ||
| - | </ | ||
| - | |||
| - | ==== Install PHP-fpm ==== | ||
| - | <note important> | ||
| - | |||
| - | cp / | ||
| - | < | ||
| - | < | ||
| - | yum -y install php53u-fpm php53u-pecl-apc pcre-devel php53u-mysql sox | ||
| - | sed -i " | ||
| - | sed -i " | ||
| - | sed -i '/ | ||
| - | sed -i " | ||
| - | sed -i " | ||
| - | chkconfig php-fpm on | ||
| - | </ | ||
| - | ==== Install DAHDI ==== | ||
| - | * installation | ||
| - | < | ||
| - | cd /usr/src | ||
| - | wget http:// | ||
| - | 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 | ||
| - | < | ||
| - | / | ||
| - | / | ||
| - | </ | ||
| - | ==== Install libpri ==== | ||
| - | < | ||
| - | cd /usr/src | ||
| - | wget http:// | ||
| - | tar zxf libpri-1.4.12.tar.gz | ||
| - | cd libpri-1.4.12 | ||
| - | make | ||
| - | make install | ||
| - | </ | ||
| - | ==== Installed asterisk | ||
| - | * Installation | ||
| - | < | ||
| - | cd /usr/src | ||
| - | wget http:// | ||
| - | tar zxvf asterisk-1.6.2.13.tar.gz | ||
| - | cd asterisk-1.6.2.13 | ||
| - | ./configure | ||
| - | make | ||
| - | make install | ||
| - | make config | ||
| - | </ | ||
| - | * make asterisk running as user asterisk | ||
| - | < | ||
| - | sed -i " | ||
| - | sed -i " | ||
| - | </ | ||
| - | * enable AMI and config a user | ||
| - | < | ||
| - | cat > / | ||
| - | [general] | ||
| - | enabled = yes | ||
| - | port = 5038 | ||
| - | bindaddr = 0.0.0.0 | ||
| - | displayconnects=no | ||
| - | |||
| - | [asterccuser] | ||
| - | secret = asterccsecret | ||
| - | deny=0.0.0.0/ | ||
| - | permit=127.0.0.1/ | ||
| - | read = system, | ||
| - | write = all | ||
| - | EOF | ||
| - | |||
| - | </ | ||
| - | * start asterisk | ||
| - | < | ||
| - | / | ||
| - | </ | ||
| - | * add asterisk to startup | ||
| - | < | ||
| - | chkconfig asterisk on | ||
| - | </ | ||
| - | |||
| - | ==== Install lame ==== | ||
| - | lame is using for mp3 | ||
| - | < | ||
| - | cd /usr/src | ||
| - | wget http:// | ||
| - | tar zxvf lame-3.99.tar.gz | ||
| - | cd lame-3.99 | ||
| - | ./configure | ||
| - | make | ||
| - | make install | ||
| - | ln -s / | ||
| - | </ | ||
| - | ==== Install mpg123 ==== | ||
| - | < | ||
| - | cd /usr/src | ||
| - | wget http:// | ||
| - | 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 | ||
| - | |||
| - | < | ||
| - | / | ||
| - | chkconfig httpd off | ||
| - | </ | ||
| - | * install nginx and http push module | ||
| - | |||
| - | < | ||
| - | cd /usr/src | ||
| - | wget http:// | ||
| - | tar zxf nginx-1.0.9.tar.gz | ||
| - | |||
| - | wget http:// | ||
| - | tar zxf nh7a-nginx_http_push_module-44e4469.tar.gz | ||
| - | cd nginx-1.0.9 | ||
| - | ./configure --add-module=/ | ||
| - | make | ||
| - | make install | ||
| - | </ | ||
| - | * add nginx to startup | ||
| - | < | ||
| - | chkconfig httpd off | ||
| - | wget http:// | ||
| - | unzip ./nginx.zip | ||
| - | mv ./nginx / | ||
| - | chmod +x / | ||
| - | </ | ||
| - | * Add to auto start | ||
| - | < | ||
| - | wget http:// | ||
| - | unzip ./nginx.zip | ||
| - | mv ./nginx / | ||
| - | chmod +x / | ||
| - | 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 | ||
| - | <note tip>use command " | ||
| - | for 32 bit Linux | ||
| - | < | ||
| - | cd /usr/src | ||
| - | wget http:// | ||
| - | tar zxf ioncube_loaders_lin_x86.tar.gz | ||
| - | </ | ||
| - | for 64 bit Linux | ||
| - | < | ||
| - | cd /usr/src | ||
| - | wget http:// | ||
| - | tar zxf ioncube_loaders_lin_x86-64.tar.gz | ||
| - | </ | ||
| - | |||
| - | * install & config | ||
| - | < | ||
| - | mv / | ||
| - | sed -i "/ | ||
| - | echo " | ||
| - | / | ||
| - | </ | ||
| - | |||
| - | ==== install asterCC Commercial ==== | ||
| - | [[en: | ||
| - | |||
| - | |||
| - | ====== Ubuntu ====== | ||
| - | < | ||
| - | ==== install nesseary packages ==== | ||
| - | < | ||
| - | apt-get update | ||
| - | apt-get -y --force-yes install | ||
| - | </ | ||
| - | < | ||
| - | |||
| - | if you need to use the fax module, you need | ||
| - | < | ||
| - | apt-get -y --force-yes install hylafax-server hylafax-client iaxmodem | ||
| - | </ | ||
| - | ==== install php5-fpm ==== | ||
| - | < | ||
| - | apt-get install php5-cli php5-common php5-suhosin php5-fpm php5-cgi php5-mysql | ||
| - | </ | ||
| - | ==== install DAHDI ==== | ||
| - | * install | ||
| - | < | ||
| - | cd /usr/src | ||
| - | wget http:// | ||
| - | tar zxf dahdi-linux-complete-2.6.0+2.6.0.tar.gz | ||
| - | cd dahdi-linux-complete-2.6.0+2.6.0 | ||
| - | make | ||
| - | make install | ||
| - | make config | ||
| - | </ | ||
| - | * Configure and start DAHDI | ||
| - | < | ||
| - | / | ||
| - | / | ||
| - | </ | ||
| - | ==== intall libpri ==== | ||
| - | < | ||
| - | cd /usr/src | ||
| - | wget http:// | ||
| - | tar zxf libpri-1.4.12.tar.gz | ||
| - | cd libpri-1.4.12 | ||
| - | make | ||
| - | make install | ||
| - | </ | ||
| - | ==== install asterisk ==== | ||
| - | < | ||
| - | useradd -c " | ||
| - | mkdir / | ||
| - | chown asterisk: | ||
| - | tar zxf asterisk-1.6.2.13.tar.gz | ||
| - | cd asterisk-1.6.2.13 | ||
| - | ./configure ' | ||
| - | make | ||
| - | make install | ||
| - | make samples | ||
| - | make config | ||
| - | </ | ||
| - | * make asterisk running as user asterisk | ||
| - | < | ||
| - | sed -i " | ||
| - | sed -i " | ||
| - | </ | ||
| - | * enable AMI and config a user | ||
| - | < | ||
| - | cat > / | ||
| - | [general] | ||
| - | enabled = yes | ||
| - | port = 5038 | ||
| - | bindaddr = 0.0.0.0 | ||
| - | displayconnects=no | ||
| - | |||
| - | [asterccuser] | ||
| - | secret = asterccsecret | ||
| - | deny=0.0.0.0/ | ||
| - | permit=127.0.0.1/ | ||
| - | read = system, | ||
| - | write = all | ||
| - | EOF | ||
| - | |||
| - | </ | ||
| - | * start asterisk | ||
| - | < | ||
| - | / | ||
| - | </ | ||
| - | * add asterisk to startup | ||
| - | < | ||
| - | chkconfig asterisk on | ||
| - | </ | ||
| - | |||
| - | ==== install lame ==== | ||
| - | lame is using for mp3 | ||
| - | < | ||
| - | cd /usr/src | ||
| - | wget http:// | ||
| - | tar zxf lame-3.99.tar.gz | ||
| - | cd lame-3.99 | ||
| - | ./configure | ||
| - | make | ||
| - | make install | ||
| - | </ | ||
| - | ==== intall mpg123 ==== | ||
| - | < | ||
| - | cd /usr/src | ||
| - | wget http:// | ||
| - | 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 | ||
| - | < | ||
| - | service apache2 stop | ||
| - | chkconfig apache2 off | ||
| - | </ | ||
| - | * install nginx and http push module | ||
| - | < | ||
| - | cd /usr/src | ||
| - | wget http:// | ||
| - | tar zxf nginx-1.0.9.tar.gz | ||
| - | wget http:// | ||
| - | tar zxf nginx_http_push_module-0.692.tar.gz | ||
| - | cd nginx-1.0.9 | ||
| - | ./configure --add-module=/ | ||
| - | make | ||
| - | make install | ||
| - | </ | ||
| - | * add nginx to startup | ||
| - | < | ||
| - | wget http:// | ||
| - | unzip ./ | ||
| - | mv ./nginx / | ||
| - | chmod +x / | ||
| - | 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 | ||
| - | <note tip>use command “getconf LONG_BIT” you will know your system is 32bit or 64bit</ | ||
| - | for 32 bit Linux | ||
| - | < | ||
| - | cd /usr/src | ||
| - | wget http:// | ||
| - | tar zxf ioncube_loaders_lin_x86.tar.gz | ||
| - | </ | ||
| - | for 64 bit Linux | ||
| - | < | ||
| - | cd /usr/src | ||
| - | wget http:// | ||
| - | tar zxf ioncube_loaders_lin_x86-64.tar.gz | ||
| - | </ | ||
| - | * install & config | ||
| - | < | ||
| - | mv / | ||
| - | sed -i "/ | ||
| - | echo " | ||
| - | |||
| - | sed -i " | ||
| - | sed -i " | ||
| - | sed -i " | ||
| - | sed -i " | ||
| - | sed -i '/ | ||
| - | sed -i " | ||
| - | sed -i " | ||
| - | |||
| - | / | ||
| - | </ | ||
| - | |||
| - | ==== install asterCC Commercial ==== | ||
| - | [[en: | ||