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/03/06 03:52] – 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/ | + | |
| - | 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/ | + | we suggest to use ISO installation |
| - | < | + | |
| - | 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 | + | =====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 |
| - | echo " | + | |
| - | / | + | |
| - | </ | + | |
| - | * create log folder and conf file | + | {{: |
| - | < | + | |
| - | mkdir / | + | |
| - | cat > / | + | |
| - | #user nobody; | + | |
| - | worker_processes | + | |
| - | # | + | * 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> |
| - | # | + | <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 | ||
| - | #pid logs/nginx.pid; | + | {{: |
| + | * hit Enter to continue | ||
| - | events | + | {{: |
| - | worker_connections | + | |
| - | } | + | |
| + | * select the language during the installaion | ||
| - | http { | + | {{: |
| - | include | + | |
| - | default_type | + | |
| - | log_format | + | * a warning that the hard disk will be format, select YES to continue |
| - | ' | + | |
| - | '" | + | |
| - | # | + | {{: |
| - | sendfile | + | * 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 |
| - | # | + | |
| - | # | + | * if you select use whole harddisk, it will give the WARNING, just select YES to continue |
| - | keepalive_timeout | + | |
| - | #gzip on; | + | {{: |
| - | server | + | |
| - | | + | |
| - | listen | + | |
| - | client_max_body_size 20M; | + | |
| - | index index.html index.htm index.php; | + | |
| - | root / | + | |
| - | location / { | + | * select NO to skip re-check |
| - | index index.php; | + | |
| - | if (-f \$request_filename) | + | {{:en: |
| - | break; | + | |
| - | } | + | |
| - | if (!-f \$request_filename) | + | |
| - | rewrite ^/(.+)\$ / | + | |
| - | break; | + | |
| - | } | + | |
| - | location / | + | |
| - | set \$push_channel_id \$arg_channel; | + | |
| - | push_publisher; | + | |
| - | # push_message_timeout 5m; | + | |
| - | push_message_buffer_length 15; | + | |
| - | push_channel_group pushmodule_chat; | + | |
| - | } | + | |
| - | location / | + | |
| - | set \$push_channel_id \$arg_channel; | + | |
| - | push_subscriber; | + | |
| - | # send_timeout 3600; #so that nginx won't drop connections willy-nilly | + | |
| - | push_channel_group pushmodule_chat; | + | |
| - | } | + | |
| - | } | + | |
| - | location ~ /\.ht { | + | |
| - | deny all; | + | |
| - | } | + | |
| - | location ~ .*\.(php|php5)? | + | |
| - | { | + | |
| - | fastcgi_pass | + | |
| - | fastcgi_index index.php; | + | |
| - | include fastcgi_params; | + | |
| - | fastcgi_param | + | |
| - | } | + | |
| - | location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|wav)$ | + | |
| - | { | + | |
| - | access_log | + | |
| - | expires 15d; | + | |
| - | | + | |
| - | location ~ .*\.(js|css)? | + | * select YES for network config |
| - | { | + | |
| - | expires 1d; | + | |
| - | } | + | |
| - | access_log / | + | {{: |
| - | | + | |
| - | } | + | |
| - | EOF | + | |
| - | </code> | + | * use space key to enable IPV4 |
| - | * restart nginx | + | |
| + | {{: | ||
| + | |||
| + | * network config | ||
| + | |||
| + | {{: | ||
| + | |||
| + | * config gateway and DNS | ||
| + | |||
| + | {{: | ||
| + | |||
| + | * set hostname of the server | ||
| + | |||
| + | {{: | ||
| + | |||
| + | * select time zone | ||
| + | |||
| + | {{: | ||
| + | |||
| + | * enter password of root user | ||
| + | |||
| + | <note important> | ||
| + | |||
| + | {{: | ||
| + | |||
| + | * installation start, it will take about 10 minutes | ||
| + | |||
| + | <note important> | ||
| + | |||
| + | {{: | ||
| + | |||
| + | * When installation is done, you could will the login prompt | ||
| + | |||
| + | {{: | ||
| + | |||
| + | * login use user root and the password you sett during the installation, | ||
| + | |||
| + | {{: | ||
| + | |||
| + | * open your browser, enter the IP address, if all goes well, you will see asterCC login page | ||
| + | |||
| + | <note important> | ||
| + | |||
| + | {{: | ||
| + | |||
| + | =====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/ | ||
| < | < | ||
| - | service nginx restart | + | wget http:// |
| + | chmod +x ./ | ||
| + | ./ | ||
| </ | </ | ||
| - | 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 | + | for Ubuntu |
| < | < | ||
| - | echo " | + | wget http://download1.astercc.org/install_asterCC_Commercial_Ubuntu.sh |
| + | chmod +x ./install_asterCC_Commercial_Ubuntu.sh | ||
| + | ./install_asterCC_Commercial_Ubuntu.sh | ||
| </ | </ | ||
| - | ======use ISO CD for automatic installation====== | ||