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/22 12:54] – 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/ | ||
| - | </ | ||
| - | {{:en: | + | =====use ISO CD for automatic installation===== |
| + | * first go to http://astercc.org/ | ||
| - | <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: |
| - | all package version could be found in http://astercc.org/ | + | |
| - | for CentOS/ | + | * 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, |
| - | wget http:// | + | <note tip>if this is the first time you use this, you could test in a virtual machine for testing</note> |
| - | chmod +x ./ | + | * start the server, you will see this |
| - | ./ | + | |
| - | </code> | + | |
| - | for Ubuntu | + | {{:en:download_and_install:start_up.jpg|}} |
| - | < | + | |
| - | wget http:// | + | |
| - | chmod +x ./ | + | |
| - | ./ | + | |
| - | </ | + | |
| - | ======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/ | + | |
| - | * 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 ./ | + | |
| - | ./install.sh | + | |
| - | </ | + | |
| - | | + | * hit Enter to continue |
| - | < | + | |
| - | echo " | + | |
| - | / | + | |
| - | </ | + | |
| - | * create log folder and conf file | + | {{: |
| - | < | + | |
| - | mkdir / | + | |
| - | cat > / | + | |
| - | #user nobody; | + | |
| - | worker_processes | + | |
| - | # | + | * select the language during the installaion |
| - | # | + | |
| - | # | + | |
| - | #pid logs/nginx.pid; | + | {{: |
| + | * a warning that the hard disk will be format, select YES to continue | ||
| - | events | + | {{: |
| - | worker_connections | + | |
| - | } | + | |
| + | * 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 | + | |
| - | default_type | + | |
| - | log_format | + | {{: |
| - | ' | + | |
| - | '" | + | |
| - | # | + | * select NO to skip re-check |
| - | sendfile | + | {{: |
| - | # | + | |
| - | # | + | * select YES for network config |
| - | keepalive_timeout | + | |
| - | #gzip on; | + | {{: |
| - | server | + | |
| - | | + | |
| - | listen | + | |
| - | client_max_body_size 20M; | + | |
| - | index index.html index.htm index.php; | + | |
| - | root / | + | |
| - | location / { | + | * use space key to enable IPV4 |
| - | 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 = / | + | * network config |
| - | 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 = / | + | * config gateway and DNS |
| - | 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 / | + | * set hostname of the server |
| - | } | + | |
| - | } | + | |
| - | 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. | + | |
| - | < | + | |
| - | | + | * 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 / | ||
| + | all package version could be found in http:// | ||
| + | |||
| + | for CentOS/ | ||
| < | < | ||
| - | echo " | + | 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 | + | |
| - | < | + | |
| - | chkconfig mysqld on | + | |
| - | chkconfig nginx on | + | |
| - | chkconfig php-fpm on | + | |
| - | chkconfig crond on | + | |
| - | chkconfig asterisk on | + | |
| - | chkconfig asterccd on | + | |
| </ | </ | ||
| + | |||
| for Ubuntu | for Ubuntu | ||
| < | < | ||
| - | update-rc.d mysql defaults | + | wget http:// |
| - | update-rc.d nginx defaults | + | chmod +x ./ |
| - | 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:// | ||
| - | {{: | ||
| - | * 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</ | ||
| - | * start the server, you will see this | ||