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:installation [2013/02/07 10:49] – [install manually] soloen:download_and_install:installation [2017/08/02 09:59] (current) – [using installation script] donnie
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=====
- +
-<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> +
-wget http://astercc.org/download/install_asterCC_Commercial_CentOS.sh +
-chmod +x ./install_asterCC_Commercial_CentOS.sh +
-./install_asterCC_Commercial_CentOS.sh +
-</code> +
- +
-for Ubuntu +
-<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/asterCC +
-    * execute "asterisk -r", make sure asterisk is running +
-<file> +
-[root@astercc-dev-63 astercc-1.2-beta]# asterisk -r +
-Asterisk 1.6.2.20, 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.20 currently running on astercc-dev-63 (pid = 19479) +
-Verbosity is at least 3 +
-astercc-dev-63*CLI>quit +
-</file> +
-  * go http://astercc.org/downloads, get astercc-1.2-beta.tar.gz +
-<code> +
-cd /usr/src +
-wget http://download1.astercc.org/astercc-1.2-beta.tar.gz +
-tar zxf astercc-1.2-beta.tar.gz +
-cd astercc-1.2-beta +
-chmod +x ./install.sh +
-./install.sh +
-</code> +
-<file> +
-[root@astercc-dev-63 astercc-1.2-beta]# ./install.sh +
-***************************************************************** +
-****************** Installing astercc package ******************* +
-***************************************************************** +
-group asterisk already present +
-user asterisk already present +
-Please enter database information +
-database host(default 127.0.0.1): +
-Please enter database information +
-database user(default root): +
-Please enter database information +
-database password(default null):passw0rd +
-database port(default 3306): +
-database name(default astercc10): +
-table prefix(default cc10_): +
-mysql bin path(default /usr/bin): +
-If database:'astercc10' is not exists, press 'y' to create, +
-else press 'n' to skip this step:y +
-Please enter absolute path of asterisk etc +
-asterisk etc (default /etc/asterisk): +
-asterisk etc path is /etc/asterisk +
-[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 +
-Please enter the Asterisk infomation: +
-Asterisk Host(default 127.0.0.1): +
-Asterisk Manager API port(default 5038): +
-AMI User name:asterccuser +
-AMI Secret:asterccsecret +
-Please enter install directory for astercc +
-astercc directory(default /var/www/html/asterCC): +
-astercc install path is /var/www/html/asterCC +
-SETTING FILE PERMISSIONS... +
-Setting asterisk run as user:asterisk/group:asterisk +
-Restarting asterisk... +
-/usr/sbin/safe_asterisk: line 145: 19479 Segmentation fault      (core dumped) nice -n $PRIORITY ${ASTSBINDIR}/asterisk -f ${CLIARGS} ${ASTARGS} > /dev/${TTY} 2>&1 < /dev/${TTY} +
-Asterisk ended with exit status 139 +
-Asterisk exited on signal 11. +
-Automatically restarting Asterisk. +
-Stopping safe_asterisk:                                    [  OK  ] +
-Shutting down asterisk:                                    [FAILED] +
-Starting asterisk:                                          OK  ] +
-Do you want to auto start astercc daemon when system startup? +
-Press 'y' to auto start:y +
-Do you want to start asterCC daemon now? +
-Press 'y' to start:y +
-starting asterccd... +
-Starting astcc_realtime:                                    OK  ] +
-Starting readevents:                                        OK  ] +
-Starting astccdatamover:                                    OK  ] +
-Starting astccdialer:                                      [  OK  ] +
-Starting astcc_statistics:                                  OK  ] +
-Starting astcc_sysevents:                                  [  OK  ] +
-Starting asterccc:        Updated new license! +
-                                                            OK  ] +
-Starting safe_astercc:                                      OK  ] +
-***************************************************************** +
-*******************astercc install finished********************** +
-*****Your astercc web directory at /var/www/html/asterCC/app/webroot.****** +
-*****Your astercc daemon directory at /opt/asterisk/scripts/astercc.*** +
-***************************************************************** +
-</file> +
- +
- +
-  * create log folder and conf file +
-<code> +
-mkdir /var/www/html/astercc/http-log +
-cat >  /usr/local/nginx/conf/nginx.conf << EOF +
-#user  nobody; +
-worker_processes  1; +
-worker_rlimit_nofile 655350; +
- +
-#error_log  logs/error.log; +
-#error_log  logs/error.log  notice; +
-#error_log  logs/error.log  info; +
- +
-pid        /var/run/nginx.pid; +
- +
- +
-events { +
-    worker_connections  1024; +
-+
- +
- +
-http { +
-    include       mime.types; +
-    default_type  application/octet-stream; +
- +
-    log_format  main  '\$remote_addr - \$remote_user [$time_local] "\$request"+
-                      '\$status \$body_bytes_sent "\$http_referer"+
-                      '"\$http_user_agent" "\$http_x_forwarded_for"'; +
- +
-    #access_log  logs/access.log  main; +
- +
-    sendfile        on; +
-    #tcp_nopush     on; +
- +
-    #keepalive_timeout  0; +
-    keepalive_timeout  65; +
- +
-    client_header_buffer_size 32k; +
-    large_client_header_buffers 4 32k; +
- +
- push_stream_store_messages on; +
- push_stream_shared_memory_size  256M; +
- push_stream_message_ttl  15m; +
- +
-    #gzip  on; +
-    server +
-    { +
-        listen       80 default; +
-        client_max_body_size 20M; +
-        index index.html index.htm index.php; +
-        root  /var/www/html/asterCC/app/webroot; +
- +
-        location / { +
-          index index.php; +
- +
-          if (-f \$request_filename) { +
-            break; +
-          } +
-          if (!-f \$request_filename) { +
-            rewrite ^/(.+)\$ /index.php?url=\$1 last; +
-            break; +
-          } +
-   location  /agentindesks/pushagent { +
- push_stream_publisher admin; +
- set \$push_stream_channel_id \$arg_channel; +
-   } +
- +
-   location ~ /agentindesks/agentpull/(.*) { +
- push_stream_subscriber      long-polling; +
- set \$push_stream_channels_path    \$1; +
- push_stream_message_template                 ~text~; +
- push_stream_longpolling_connection_ttl        60s;  +
-   } +
- +
-   location  /publicapi/pushagent { +
- push_stream_publisher admin; +
- set \$push_stream_channel_id             \$arg_channel; +
-   } +
- +
-   location ~ /publicapi/agentpull/(.*) { +
- push_stream_subscriber      long-polling; +
- set \$push_stream_channels_path    \$1; +
- push_stream_message_template         "{\\"text\\":\\"~text~\\",\\"tag\\":~tag~,\\"time\\":\\"~time~\\"}"; +
- push_stream_longpolling_connection_ttl        60s; +
- push_stream_last_received_message_tag       \$arg_etag; +
- push_stream_last_received_message_time      \$arg_since; +
-   } +
-  +
-   location  /systemevents/pushagent { +
- push_stream_publisher admin; +
- set \$push_stream_channel_id             \$arg_channel; +
-   } +
- +
-   location ~ /systemevents/agentpull/(.*) { +
- push_stream_subscriber      long-polling; +
- set \$push_stream_channels_path    \$1; +
- push_stream_message_template                 ~text~; +
- push_stream_longpolling_connection_ttl        60s; +
-   } +
-        } +
- +
-        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)?+
-        { +
-          expires 1d; +
-        } +
- +
-        access_log /var/www/html/asterCC/http-log/access.log main; +
-    } +
-+
-EOF +
- +
- +
-</code> +
-  * 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 +
-<code> +
-echo "asterisk ALL=NOPASSWD :/etc/init.d/asterisk" >> /etc/sudoers +
-</code> +
-  * make sure all service will start +
-for CentOS +
-<code> +
-chkconfig mysqld on +
-chkconfig nginx on +
-chkconfig php-fpm on +
-chkconfig crond on +
-chkconfig asterisk on +
-chkconfig asterccd on +
-</code> +
-for Ubuntu +
-<code> +
-update-rc.d mysql defaults +
-update-rc.d nginx defaults +
-update-rc.d php5-fpm defaults +
-update-rc.d cron defaults +
-update-rc.d asterisk defaults +
-update-rc.d asterccd defaults +
-</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 * 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|}}+{{:en:download_and_install:en_download.jpg?&650|}}
  
 * 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 * 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
Line 382: Line 91:
  
 {{:en:download_and_install:login_2.jpg|}} {{: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>
 +wget http://download1.astercc.org/install_asterCC_Commercial_CentOS.sh
 +chmod +x ./install_asterCC_Commercial_CentOS.sh
 +./install_asterCC_Commercial_CentOS.sh
 +</code>
 +
 +for Ubuntu
 +<code>
 +wget http://download1.astercc.org/install_asterCC_Commercial_Ubuntu.sh
 +chmod +x ./install_asterCC_Commercial_Ubuntu.sh
 +./install_asterCC_Commercial_Ubuntu.sh
 +</code>
en/download_and_install/installation.1360234155.txt.gz · Last modified: (external edit)
Recent changes RSS feed Debian Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki