This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:download_and_install:installation [2013/02/07 10:49] – [install manually] solo | en:download_and_install:installation [2017/08/02 09:59] (current) – [using installation script] donnie | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | there are three ways to install | + | ====== |
| - | we suggest | + | there are two ways to install asterCC Commercial |
| - | ======using installation script====== | + | * automatic install from ISO |
| - | * first go to http:// | + | * install from the installation |
| - | < | + | |
| - | for Redhad/ | + | we suggest to use ISO installation |
| - | for Debian/ | ||
| - | </ | ||
| - | {{: | + | =====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:// | + | |
| - | + | ||
| - | for CentOS/ | + | |
| - | < | + | |
| - | wget http:// | + | |
| - | chmod +x ./ | + | |
| - | ./ | + | |
| - | </ | + | |
| - | + | ||
| - | for Ubuntu | + | |
| - | < | + | |
| - | wget http:// | + | |
| - | chmod +x ./ | + | |
| - | ./ | + | |
| - | </ | + | |
| - | ======install manually====== | + | |
| - | * first make sure you have already finish the job in [[: | + | |
| - | * you need to know | + | |
| - | * mysql root password | + | |
| - | * asterisk AMI user (asterccuser/ | + | |
| - | * installation path, we use / | + | |
| - | * execute " | + | |
| - | < | + | |
| - | [root@astercc-dev-63 astercc-1.2-beta]# | + | |
| - | Asterisk 1.6.2.20, Copyright (C) 1999 - 2010 Digium, Inc. and others. | + | |
| - | Created by Mark Spencer < | + | |
| - | Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' | + | |
| - | 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' | + | |
| - | ========================================================================= | + | |
| - | Connected to Asterisk 1.6.2.20 currently running on astercc-dev-63 (pid = 19479) | + | |
| - | Verbosity is at least 3 | + | |
| - | astercc-dev-63*CLI> | + | |
| - | </ | + | |
| - | * go http:// | + | |
| - | < | + | |
| - | cd /usr/src | + | |
| - | wget http:// | + | |
| - | tar zxf astercc-1.2-beta.tar.gz | + | |
| - | cd astercc-1.2-beta | + | |
| - | chmod +x ./ | + | |
| - | ./ | + | |
| - | </ | + | |
| - | < | + | |
| - | [root@astercc-dev-63 astercc-1.2-beta]# | + | |
| - | ***************************************************************** | + | |
| - | ****************** 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): | + | |
| - | database port(default 3306): | + | |
| - | database name(default astercc10): | + | |
| - | table prefix(default cc10_): | + | |
| - | mysql bin path(default / | + | |
| - | If database:' | + | |
| - | else press ' | + | |
| - | Please enter absolute path of asterisk etc | + | |
| - | asterisk etc (default / | + | |
| - | asterisk etc path is / | + | |
| - | [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 | + | |
| - | Please enter the Asterisk infomation: | + | |
| - | Asterisk Host(default 127.0.0.1): | + | |
| - | Asterisk Manager API port(default 5038): | + | |
| - | AMI User name: | + | |
| - | AMI Secret: | + | |
| - | Please enter install directory for astercc | + | |
| - | astercc directory(default / | + | |
| - | astercc install path is / | + | |
| - | SETTING FILE PERMISSIONS... | + | |
| - | Setting asterisk run as user: | + | |
| - | Restarting asterisk... | + | |
| - | / | + | |
| - | Asterisk ended with exit status 139 | + | |
| - | Asterisk exited on signal 11. | + | |
| - | Automatically restarting Asterisk. | + | |
| - | Stopping safe_asterisk: | + | |
| - | Shutting down asterisk: | + | |
| - | Starting asterisk: | + | |
| - | Do you want to auto start astercc daemon when system startup? | + | |
| - | Press ' | + | |
| - | Do you want to start asterCC daemon now? | + | |
| - | Press ' | + | |
| - | starting asterccd... | + | |
| - | Starting astcc_realtime: | + | |
| - | Starting readevents: | + | |
| - | Starting astccdatamover: | + | |
| - | Starting astccdialer: | + | |
| - | Starting astcc_statistics: | + | |
| - | Starting astcc_sysevents: | + | |
| - | Starting asterccc: | + | |
| - | | + | |
| - | Starting safe_astercc: | + | |
| - | ***************************************************************** | + | |
| - | *******************astercc install finished********************** | + | |
| - | *****Your astercc web directory at / | + | |
| - | *****Your astercc daemon directory at / | + | |
| - | ***************************************************************** | + | |
| - | </ | + | |
| - | + | ||
| - | + | ||
| - | * create log folder and conf file | + | |
| - | < | + | |
| - | mkdir / | + | |
| - | cat > / | + | |
| - | #user nobody; | + | |
| - | worker_processes | + | |
| - | worker_rlimit_nofile 655350; | + | |
| - | + | ||
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | + | ||
| - | pid / | + | |
| - | + | ||
| - | + | ||
| - | events { | + | |
| - | worker_connections | + | |
| - | } | + | |
| - | + | ||
| - | + | ||
| - | http { | + | |
| - | include | + | |
| - | default_type | + | |
| - | + | ||
| - | log_format | + | |
| - | ' | + | |
| - | '" | + | |
| - | + | ||
| - | # | + | |
| - | + | ||
| - | sendfile | + | |
| - | # | + | |
| - | + | ||
| - | # | + | |
| - | keepalive_timeout | + | |
| - | + | ||
| - | client_header_buffer_size 32k; | + | |
| - | large_client_header_buffers 4 32k; | + | |
| - | + | ||
| - | push_stream_store_messages on; | + | |
| - | push_stream_shared_memory_size | + | |
| - | push_stream_message_ttl | + | |
| - | + | ||
| - | #gzip on; | + | |
| - | server | + | |
| - | { | + | |
| - | listen | + | |
| - | client_max_body_size 20M; | + | |
| - | index index.html index.htm index.php; | + | |
| - | root / | + | |
| - | + | ||
| - | location / { | + | |
| - | index index.php; | + | |
| - | + | ||
| - | if (-f \$request_filename) { | + | |
| - | break; | + | |
| - | } | + | |
| - | if (!-f \$request_filename) { | + | |
| - | rewrite ^/(.+)\$ / | + | |
| - | break; | + | |
| - | } | + | |
| - | location | + | |
| - | push_stream_publisher admin; | + | |
| - | set \$push_stream_channel_id \$arg_channel; | + | |
| - | } | + | |
| - | + | ||
| - | location ~ / | + | |
| - | push_stream_subscriber | + | |
| - | set \$push_stream_channels_path | + | |
| - | push_stream_message_template | + | |
| - | push_stream_longpolling_connection_ttl | + | |
| - | } | + | |
| - | + | ||
| - | location | + | |
| - | push_stream_publisher admin; | + | |
| - | set \$push_stream_channel_id | + | |
| - | } | + | |
| - | + | ||
| - | location ~ / | + | |
| - | push_stream_subscriber | + | |
| - | set \$push_stream_channels_path | + | |
| - | push_stream_message_template | + | |
| - | push_stream_longpolling_connection_ttl | + | |
| - | push_stream_last_received_message_tag | + | |
| - | push_stream_last_received_message_time | + | |
| - | } | + | |
| - | + | ||
| - | location | + | |
| - | push_stream_publisher admin; | + | |
| - | set \$push_stream_channel_id | + | |
| - | } | + | |
| - | + | ||
| - | location ~ / | + | |
| - | push_stream_subscriber | + | |
| - | set \$push_stream_channels_path | + | |
| - | push_stream_message_template | + | |
| - | push_stream_longpolling_connection_ttl | + | |
| - | } | + | |
| - | } | + | |
| - | + | ||
| - | location ~ /\.ht { | + | |
| - | deny all; | + | |
| - | } | + | |
| - | location ~ .*\.(php|php5)? | + | |
| - | { | + | |
| - | fastcgi_pass | + | |
| - | fastcgi_index index.php; | + | |
| - | include fastcgi_params; | + | |
| - | fastcgi_param | + | |
| - | 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 | + | |
| - | expires 15d; | + | |
| - | } | + | |
| - | + | ||
| - | location ~ .*\.(js|css)? | + | |
| - | { | + | |
| - | expires 1d; | + | |
| - | } | + | |
| - | + | ||
| - | access_log / | + | |
| - | } | + | |
| - | } | + | |
| - | EOF | + | |
| - | + | ||
| - | + | ||
| - | </ | + | |
| - | * restart nginx | + | |
| - | < | + | |
| - | service nginx restart | + | |
| - | </ | + | |
| - | now use your browser to visit the server, you should see astercc login page, login as admin/admin which is default administrator account. | + | |
| - | < | + | |
| - | + | ||
| - | * add user asterisk to sudo list | + | |
| - | < | + | |
| - | echo " | + | |
| - | </ | + | |
| - | * make sure all service will start | + | |
| - | for CentOS | + | |
| - | < | + | |
| - | chkconfig mysqld on | + | |
| - | chkconfig nginx on | + | |
| - | chkconfig php-fpm on | + | |
| - | chkconfig crond on | + | |
| - | chkconfig asterisk on | + | |
| - | chkconfig asterccd on | + | |
| - | </ | + | |
| - | for Ubuntu | + | |
| - | < | + | |
| - | 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 | + | |
| - | </ | + | |
| - | ======use ISO CD for automatic installation====== | + | |
| * first go to http:// | * first go to http:// | ||
| - | {{: | + | {{: |
| * 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: | ||
| {{: | {{: | ||
| + | |||
| + | =====using installation script===== | ||
| + | * first go to http:// | ||
| + | < | ||
| + | |||
| + | for Redhad/ | ||
| + | |||
| + | for Debian/ | ||
| + | </ | ||
| + | |||
| + | {{: | ||
| + | |||
| + | <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:// | ||
| + | |||
| + | for CentOS/ | ||
| + | < | ||
| + | wget http:// | ||
| + | chmod +x ./ | ||
| + | ./ | ||
| + | </ | ||
| + | |||
| + | for Ubuntu | ||
| + | < | ||
| + | wget http:// | ||
| + | chmod +x ./ | ||
| + | ./ | ||
| + | </ | ||