Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:download_and_install:installation [2012/06/22 12:54]
solo
en:download_and_install:installation [2017/12/12 03:05] (current)
Line 1: Line 1:
-there are three ways to install ​asterCC ​Commercial+====== ​asterCC ​Installation ======
  
-we suggest ​to use the installation script +there are two ways to install asterCC Commercial 
-======using installation script====== +  * automatic install from ISO 
-first go to http://​astercc.org/​downloads,​ download ​the script for asterCC Commercial ​installation +  install from the installation ​shell
-<​note>​please download the script for your linux+
  
-for Redhad/​Centos using install_asterCC_Commercial_CentOS+we suggest to use ISO installation
  
-for Debian/​Ubuntu using install_asterCC_Commercial_Ubuntu 
-</​note>​ 
  
-{{:en:​download_and_install:​en_download_1.jpg|}}+=====use ISO CD for automatic installation===== 
 +* first go to http://astercc.org/​downloads,​ download the ISO file for burning a CD, please choose i386(32 bit) or x86_64(64 bit) based CPU of the server
  
-<note tip>all packages will be download to /usr/src, you can also put these packages to /usr/src to avoid long time downloading +{{:en:​download_and_install:​en_download.jpg?&​650|}}
-all package version could be found in http://astercc.org/​download/​asterccver1 </​note>​+
  
-for CentOS/​Redhat +* use a burning tools to burn the ISO file to a CD, then get a server, insert the CD, and config the server to boot from CD-ROM 
-<code> +<note warning>During the installation,​ the harddish will be formatted<​/note> 
-wget http://​astercc.org/​download/​install_asterCC_Commercial_CentOS.sh +<note tip>if this is the first time you use this, you could test in a virtual machine for testing</note> 
-chmod +x ./​install_asterCC_Commercial_CentOS.sh +* start the server, you will see this
-./​install_asterCC_Commercial_CentOS.sh +
-</code>+
  
-for Ubuntu +{{:en:download_and_install:start_up.jpg|}}
-<​code>​ +
-wget http://​astercc.org/​download/​install_asterCC_Commercial_Ubuntu.sh +
-chmod +x ./​install_asterCC_Commercial_Ubuntu.sh +
-./​install_asterCC_Commercial_Ubuntu.sh +
-</​code>​ +
-======install manually====== +
-  * first make sure you have already finish the job in [[:en:Download and install:System environment configuration]] +
-  * you need to know +
-    * mysql root password +
-    * asterisk AMI user (asterccuser/​asterccsecret) +
-    * installation path, we use /​var/​www/​html +
-    * execute "​asterisk -r", make sure asterisk is running +
-<​file>​ +
-root@ubuntu:/​usr/​src/​astercc-1.1-beta#​ asterisk -r +
-Asterisk 1.6.2.13, Copyright (C) 1999 - 2010 Digium, Inc. and others. +
-Created by Mark Spencer <​markster@digium.com>​ +
-Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty'​ for details. +
-This is free software, with components licensed under the GNU General Public +
-License version 2 and other licenses; you are welcome to redistribute it under +
-certain conditions. Type 'core show license'​ for details. +
-========================================================================= +
-Connected to Asterisk 1.6.2.13 currently running on ubuntu (pid = 816) +
-ubuntu*CLI>​quit +
-</​file>​ +
-  * go http://​astercc.org/​downloads,​ get asterCC-1.1-beta.tar.gz +
-<​code>​ +
-mkdir /​var/​www/​html +
-wget http://​astercc.org/​download/​asterCC-1.1-beta.tar.gz +
-tar zxf asterCC-1.1-beta.tar.gz +
-cd asterCC-1.1-beta +
-chmod +x ./​install.sh +
-./install.sh +
-</​code>​+
  
-  ​for Ubuntu,you need execute +hit Enter to continue
-<​code>​ +
-echo "​init-file=/​var/​www/​html/​astercc/​app/​db-init.sql"​ >> /​etc/​mysql/​conf.d/​astercc.cnf +
-/​etc/​init.d/​mysql restart +
-</​code>​+
  
-  * create log folder and conf file +{{:​en:​download_and_install:​language.jpg|}}
-<​code>​ +
-mkdir /​var/​www/​html/​astercc/​http-log +
-cat >  /​usr/​local/​nginx/​conf/​nginx.conf << EOF +
-#user  nobody; +
-worker_processes ​ 1;+
  
-#​error_log ​ logs/​error.log;​ +* select the language during the installaion
-#​error_log ​ logs/​error.log ​ notice; +
-#​error_log ​ logs/​error.log ​ info;+
  
-#pid        logs/nginx.pid;+{{:​en:​download_and_install:​warning.jpg|}}
  
 +* a warning that the hard disk will be format, select YES to continue
  
-events ​{ +{{:​en:​download_and_install:​partition.jpg|}}
-    worker_connections ​ 1024; +
-}+
  
 +* select the partition, we select use free space her(you can also select to use the entire hard disk, which will remove all existing partition), use Tab to switch between the options. select OK to continue
  
-http { +* if you select use whole harddisk, it will give the WARNING, just select YES to continue
-    include ​      ​mime.types;​ +
-    default_type ​ application/​octet-stream;​+
  
-    log_format ​ main  '​\$remote_addr - \$remote_user [$time_local] "​\$request"​ ' +{{:​en:​download_and_install:​warning_1.jpg|}}
-                      '​\$status \$body_bytes_sent "​\$http_referer"​ ' +
-                      '"​\$http_user_agent"​ "​\$http_x_forwarded_for"';​+
  
-    #​access_log ​ logs/​access.log ​ main;+* select NO to skip re-check
  
-    sendfile ​       on; +{{:​en:​download_and_install:​review.jpg|}}
-    #​tcp_nopush ​    on;+
  
-    #​keepalive_timeout ​ 0; +* select YES for network config
-    keepalive_timeout ​ 65;+
  
-    #gzip  on; +{{:​en:​download_and_install:​network.jpg|}}
-    server +
-    ​{ +
-        listen ​      80 default; +
-        client_max_body_size 20M; +
-        index index.html index.htm index.php; +
-        root  /​var/​www/​html/​astercc/​app/​webroot;​+
  
-        location / { +* use space key to enable IPV4
-          index index.php;+
  
-          if (-f \$request_filename) ​{ +{{:​en:​download_and_install:​eth0.jpg|}}
-            break; +
-          } +
-          if (!-f \$request_filename) ​{ +
-            rewrite ^/(.+)\$ /​index.php?​url=\$1 last; +
-            break; +
-          ​} +
-   location = /​agentindesks/​pushagent { +
-     set \$push_channel_id \$arg_channel;​ #static channel id +
-     push_publisher;​ +
-     # push_message_timeout 5m; +
-     push_message_buffer_length 32; +
-     push_delete_oldest_received_message on; +
-     push_channel_group pushmodule_chat;​ +
- ​  ​ } +
-  +
-   location /​agentindesks/​agentpull { +
-     set \$push_channel_id \$arg_channel;​ #static channel id +
-     push_subscriber;​ +
-     push_jsonp;​ +
-     set \$push_jsonp_callback \$arg_callback;​ +
-     set \$push_jsonp_if_modified_since \$arg_since;​ +
-     set \$push_jsonp_if_none_match \$arg_etag;​ +
-     #​send_timeout 3600; #so that nginx won't drop connections willy-nilly +
-     push_channel_group pushmodule_chat;​ +
-   ​}+
  
-   location = /​publicapi/​pushagent { +* network config
-     set \$push_channel_id \$arg_channel;​ #static channel id +
-     push_publisher;​ +
-     push_message_buffer_length 10; +
-     push_delete_oldest_received_message on; +
-     push_channel_group publicapi_chat;​ +
-   } +
-  +
-   location /​publicapi/​agentpull { +
-     set \$push_channel_id \$arg_channel;​ #static channel id +
-     push_subscriber;​ +
-     push_jsonp;​ +
-     set \$push_jsonp_callback \$arg_callback;​ +
-     set \$push_jsonp_if_modified_since \$arg_since;​ +
-     set \$push_jsonp_if_none_match \$arg_etag;​ +
-     push_channel_group publicapi_chat;​ +
-   }+
  
- ​  ​ location = /​systemevents/​pushagent ​{ +{{:​en:​download_and_install:​eth0_1.jpg|}}
-     set \$push_channel_id ​ \$arg_channel;​ +
-     push_publisher;​ +
-     push_message_buffer_length 10; +
-     push_channel_group systemevent;​ +
-   ​}+
  
-   location = /​systemevents/​agentpull { +config gateway and DNS
-     set \$push_channel_id \$arg_channel;​ #static channel id +
-     push_subscriber;​ +
-     push_channel_group systemevent;​ +
-   }  +
-        } +
-        location ~ /\.ht { +
-          deny all; +
-        } +
-        location ~ .*\.(php|php5)?​\$ +
-        { +
-          fastcgi_pass ​ 127.0.0.1:​9000;​ +
-          fastcgi_index index.php;​ +
-          include fastcgi_params;​ +
-          fastcgi_param ​ SCRIPT_FILENAME \$document_root\$fastcgi_script_name;​ +
-   fastcgi_connect_timeout 60; +
-   fastcgi_send_timeout 180; +
-   fastcgi_read_timeout 180; +
-   fastcgi_buffer_size 128k; +
-   fastcgi_buffers 4 256k; +
-   fastcgi_busy_buffers_size 256k; +
-   fastcgi_temp_file_write_size 256k; +
-   fastcgi_intercept_errors on; +
-        } +
-        location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|wav)$ +
-        { +
-          access_log ​  ​off;​ +
-          expires 15d; +
-        }+
  
-        location ~ .*\.(js|css)?$ +{{:​en:​download_and_install:​network_1.jpg|}}
-        { +
-          expires 1d; +
-        ​}+
  
-        access_log /​var/​www/​html/​astercc/​http-log/​access.log main; +* set hostname of the server
-    } +
-+
-EOF+
  
-</​code>​ +{{:​en:​download_and_install:​hostname.jpg|}}
-  * restart nginx +
-<​code>​ +
-service nginx restart +
-</​code>​ +
-now use your browser to visit the server, you should see astercc login page, login as admin/admin which is default administrator account. +
-<​note>​please use IE8+,​Firefox 3.0+ or chrome</​note>​+
  
-  ​add user asterisk ​to sudo list+select time zone 
 + 
 +{{:​en:​download_and_install:​timezone_sh.jpg|}} 
 + 
 +* enter password of root user 
 + 
 +<note important>​please remember this password, and for security, please use a complex password</​note>​ 
 + 
 +{{:​en:​download_and_install:​password.jpg|}} 
 + 
 +* installation start, it will take about 10 minutes 
 + 
 +<note important>​During the installation,​ system will reboot, please make sure it start up from hard disk rather than CD-ROM </​note>​ 
 + 
 +{{:​en:​download_and_install:​installation.jpg|}} 
 + 
 +* When installation is done, you could will the login prompt 
 + 
 +{{:​en:​download_and_install:​login.jpg|}} 
 + 
 +* login use user root and the password you sett during the installation,​ it will give the current IP of the server. 
 + 
 +{{:​en:​download_and_install:​login_1.jpg|}} 
 + 
 +* open your browser, enter the IP address, if all goes well, you will see asterCC login page 
 + 
 +<note important>​asterCC supports the following browser: chrome,​Firefox,​IE9+</​note>​ 
 + 
 +{{:​en:​download_and_install:​login_2.jpg|}} 
 + 
 +=====using installation script===== 
 +* first go to http://​astercc.org/​downloads,​ download the script for asterCC Commercial installation 
 +<​note>​please download the script for your linux 
 + 
 +for Redhad/​Centos using install_asterCC_Commercial_CentOS 
 + 
 +for Debian/​Ubuntu using install_asterCC_Commercial_Ubuntu 
 +</​note>​ 
 + 
 +{{:​en:​download_and_install:​en_download_1.jpg|}} 
 + 
 +<note tip>all packages will be download to /usr/src, you can also put these packages to /​usr/​src ​to avoid long time downloading 
 +all package version could be found in http://​astercc.org/​download/​asterccver1 </​note>​ 
 + 
 +for CentOS/​Redhat
 <​code>​ <​code>​
-echo "​asterisk ALL=NOPASSWD ​:/etc/init.d/asterisk"​ >> ​/etc/sudoers +wget http://download1.astercc.org/install_asterCC_Commercial_CentOS.sh 
-</code> +chmod +x ./install_asterCC_Commercial_CentOS.sh 
-  * make sure all service will start +./install_asterCC_Commercial_CentOS.sh
-for CentOS +
-<​code>​ +
-chkconfig mysqld on +
-chkconfig nginx on +
-chkconfig php-fpm on +
-chkconfig crond on +
-chkconfig asterisk on +
-chkconfig asterccd on+
 </​code>​ </​code>​
 +
 for Ubuntu for Ubuntu
 <​code>​ <​code>​
-update-rc.d mysql defaults +wget http://​download1.astercc.org/​install_asterCC_Commercial_Ubuntu.sh 
-update-rc.d nginx defaults +chmod +x ./​install_asterCC_Commercial_Ubuntu.sh 
-update-rc.d php5-fpm defaults +./​install_asterCC_Commercial_Ubuntu.sh
-update-rc.d cron defaults +
-update-rc.d asterisk defaults +
-update-rc.d asterccd defaults+
 </​code>​ </​code>​
-======use ISO CD for automatic installation====== 
-* first go to http://​astercc.org/​downloads,​ download the ISO file for burning a CD, please choose i386(32 bit) or x86_64(64 bit) based CPU of the server 
-{{:​en:​download_and_install:​en_download.jpg|}} 
-* use a burning tools to burn the ISO file to a CD, then get a server, insert the CD, and config the server to boot from CD-ROM 
-<note warning>​During the installation,​ the harddish will be formatted</​note>​ 
-<note tip>if this is the first time you use this, you could test in a virtual machine for testing</​note>​ 
-* start the server, you will see this 
en/download_and_install/installation.1340369681.txt.gz · Last modified: 2017/12/12 03:11 (external edit)
Recent changes RSS feed Debian Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki