Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:download_and_install:system_environment_configuration [2012/03/06 03:27] – [install asterCC Commercial] soloen: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,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 [[http://astercc.org/downloads|asterCC Commercial installation script]] 
- 
-======CentOS and RedHat====== 
-  * Install new repo 
-  * CentOS 5.X 
-<code> 
-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 
-</code> 
-for x86_64 
-<code> 
-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 
-</code> 
-  * CentOS 6.X 
-<code> 
-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 
-</code> 
-for x86_64 
-<code> 
-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 
-</code> 
- 
-  * remove the old php packages, install mysql and other packages for dahdi, asterisk etc. 
-<code> 
-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 
-</code> 
- 
-==== Install PHP-fpm ==== 
-<note important>if you dont have file /etc/php.ini, try find /etc/php.ini.rpmnew and execute 
- 
-cp /etc/php.ini.rpmnew /etc/php.ini</note> 
-<code> 
-<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 
-</code> 
-==== Install DAHDI ==== 
-  * installation 
-<code> 
-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 
-</code> 
-  * Configure and start DAHDI 
-<code> 
-/usr/sbin/dahdi_genconf 
-/etc/init.d/dahdi start 
-</code> 
-==== Install libpri ==== 
-<code> 
-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 
-</code> 
-==== Installed asterisk  ==== 
-  * Installation 
-<code> 
-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 
-</code> 
-  * Modify asterisk running user 
-<code> 
-sed -i "s/#AST_USER/AST_USER/" /etc/init.d/asterisk 
-sed -i "s/#AST_GROUP/AST_GROUP/" /etc/init.d/asterisk 
-</code> 
-  * enable AMI and config a user 
-<code> 
-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 
- 
-</code> 
-  * start asterisk 
-<code> 
-/etc/init.d/asterisk restart 
-</code> 
-  * add asterisk to startup 
-<code> 
-chkconfig asterisk on 
-</code> 
- 
-==== Install lame ==== 
-lame is using for mp3 
-<code> 
-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/ 
-</code> 
-==== Install mpg123 ==== 
-<code> 
-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 
-</code> 
- 
-==== Install NGINX and http push module ==== 
-  * stop current http service, such as apache2 
- 
-<code> 
-/etc/init.d/httpd stop 
-chkconfig httpd off 
-</code> 
-  * install nginx and http push module 
- 
-<code> 
-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 
-</code> 
-  * add nginx to startup 
-<code> 
-chkconfig httpd off 
-wget http://astercc.org/download/nginx.zip 
-unzip ./nginx.zip 
-mv ./nginx /etc/init.d/ 
-chmod +x /etc/init.d/nginx 
-</code> 
-  * Add to auto start 
-<code> 
-wget http://astercc.org/download/nginx.zip 
-unzip ./nginx.zip 
-mv ./nginx /etc/init.d/ 
-chmod +x /etc/init.d/nginx 
-chkconfig nginx on 
-</code> 
- 
-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</note> 
-for 32 bit Linux 
-<code> 
-cd /usr/src 
-wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz 
-tar zxf ioncube_loaders_lin_x86.tar.gz 
-</code> 
-for 64 bit Linux 
-<code> 
-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 
-</code> 
- 
-  * install & config  
-<code> 
-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 
-</code> 
- 
-==== install asterCC Commercial ==== 
-[[en:download_and_install:installation]] 
  
en/download_and_install/system_environment_configuration.1331004463.txt.gz · Last modified: (external edit)
Recent changes RSS feed Debian Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki