This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:download_and_install:installation [2012/06/23 10:19] – 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@ubuntu:/ | + | |
| - | Asterisk 1.6.2.13, 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.13 currently running on ubuntu (pid = 816) | + | |
| - | ubuntu*CLI> | + | |
| - | </ | + | |
| - | * go http:// | + | |
| - | < | + | |
| - | mkdir / | + | |
| - | wget http:// | + | |
| - | tar zxf asterCC-1.1-beta.tar.gz | + | |
| - | cd asterCC-1.1-beta | + | |
| - | chmod +x ./ | + | |
| - | ./ | + | |
| - | </ | + | |
| - | + | ||
| - | * for Ubuntu,you need execute | + | |
| - | < | + | |
| - | echo " | + | |
| - | / | + | |
| - | </ | + | |
| - | + | ||
| - | * create log folder and conf file | + | |
| - | < | + | |
| - | mkdir / | + | |
| - | cat > / | + | |
| - | #user nobody; | + | |
| - | worker_processes | + | |
| - | + | ||
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | + | ||
| - | #pid logs/ | + | |
| - | + | ||
| - | + | ||
| - | events { | + | |
| - | worker_connections | + | |
| - | } | + | |
| - | + | ||
| - | + | ||
| - | http { | + | |
| - | include | + | |
| - | default_type | + | |
| - | + | ||
| - | log_format | + | |
| - | ' | + | |
| - | '" | + | |
| - | + | ||
| - | # | + | |
| - | + | ||
| - | sendfile | + | |
| - | # | + | |
| - | + | ||
| - | # | + | |
| - | keepalive_timeout | + | |
| - | + | ||
| - | #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 = / | + | |
| - | set \$push_channel_id \$arg_channel; | + | |
| - | push_publisher; | + | |
| - | # push_message_timeout 5m; | + | |
| - | push_message_buffer_length 32; | + | |
| - | push_delete_oldest_received_message on; | + | |
| - | push_channel_group pushmodule_chat; | + | |
| - | | + | |
| - | + | ||
| - | location / | + | |
| - | set \$push_channel_id \$arg_channel; | + | |
| - | 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 pushmodule_chat; | + | |
| - | } | + | |
| - | + | ||
| - | location = / | + | |
| - | set \$push_channel_id \$arg_channel; | + | |
| - | push_publisher; | + | |
| - | push_message_buffer_length 10; | + | |
| - | push_delete_oldest_received_message on; | + | |
| - | push_channel_group publicapi_chat; | + | |
| - | } | + | |
| - | + | ||
| - | location / | + | |
| - | set \$push_channel_id \$arg_channel; | + | |
| - | 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; | + | |
| - | } | + | |
| - | + | ||
| - | | + | |
| - | set \$push_channel_id | + | |
| - | push_publisher; | + | |
| - | push_message_buffer_length 10; | + | |
| - | push_channel_group systemevent; | + | |
| - | } | + | |
| - | + | ||
| - | location = / | + | |
| - | set \$push_channel_id \$arg_channel; | + | |
| - | push_subscriber; | + | |
| - | push_channel_group systemevent; | + | |
| - | } | + | |
| - | } | + | |
| - | 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 316: | 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 ./ | ||
| + | ./ | ||
| + | </ | ||