This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
en:download_and_install:installation [2012/02/01 03:40] 127.0.0.1 external edit |
en:download_and_install:installation [2017/12/12 03:05] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====Information needed during installation==== | + | ====== asterCC Installation ====== |
| - | * astercc codes | + | |
| - | * username/password of database | + | |
| - | <note> | + | |
| - | in this tutorial, we assume mysql username is root, password is passw0rd | + | |
| - | </note> | + | |
| - | * path for astercc web scripts | + | |
| - | <note> | + | |
| - | in this tutorial, we assume the path is /home/demo.astercc.com/html | + | |
| - | </note> | + | |
| - | * [[asterisk AMI username/password]] | + | |
| - | <note> | + | |
| - | in this tutorial, we assume AMI username is astercc, password is astercc | + | |
| - | </note> | + | |
| - | ====Install with the install.sh==== | + | there are two ways to install asterCC Commercial |
| - | <note warning> | + | * automatic install from ISO |
| - | install astercc may crash your old asterisk gui system. | + | * install from the installation shell |
| - | </note> | + | |
| - | <code> | + | |
| - | wget http://astercc.org/download/astercc10_beta_rc1.tar.gz | + | |
| - | tar zxvf astercc10_beta_rc1.tar.gz | + | |
| - | cd astercc10_beta_rc1 | + | |
| - | chmod +x install.sh | + | |
| - | ./install.sh | + | |
| - | </code> | + | |
| - | <file> | + | |
| - | ***************************************************************** | + | |
| - | ****************** Installing astercc package ******************* | + | |
| - | ***************************************************************** | + | |
| - | group asterisk already present | + | |
| - | user asterisk already present | + | |
| - | Please enter database information | + | |
| - | database host(default localhost): | + | |
| - | database port(default 3306): | + | |
| - | database name(default astercc10): | + | |
| - | table prefix(default cc10): | + | |
| - | database user name(default root): | + | |
| - | database user password(default null):passw0rd | + | |
| - | database 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 the Asterisk infomation: | + | |
| - | Asterisk Host(default 127.0.0.1): | + | |
| - | Asterisk Manager API port(default 5038): | + | |
| - | AMI User name:astercc | + | |
| - | AMI User password:astercc | + | |
| - | Please enter install directory for astercc | + | |
| - | astercc directory(defalut /var/www/html/astercc):/home/demo.astercc.com/html | + | |
| - | Please enter absolute path of asterisk etc | + | |
| - | asterisk etc (default /etc/asterisk): | + | |
| - | SETTING FILE PERMISSIONS... | + | |
| - | Please choose the system default language | + | |
| - | en or cn (default en): | + | |
| - | Setting asterisk run as user:asterisk/group:asterisk | + | |
| - | Are you want to load demo data to new astercc | + | |
| - | Press 'y' to load demo data:y | + | |
| - | Restarting asterisk... | + | |
| - | Stopping safe_asterisk: [ OK ] | + | |
| - | Shutting down asterisk: [ OK ] | + | |
| - | Starting asterisk: [ OK ] | + | |
| - | Are you want to auto start astercc daemon when system startup? | + | |
| - | Must be redhat-release system | + | |
| - | Press 'y' to auto start:y | + | |
| - | Are you want to start astercc daemon now? | + | |
| - | Press 'y' to start:y | + | |
| - | starting asterccd... | + | |
| - | /opt/asterisk/scripts/astercc/asterccd start: astcc_status started | + | |
| - | /opt/asterisk/scripts/astercc/asterccd start: astcc_realtime started | + | |
| - | /opt/asterisk/scripts/astercc/asterccd start: astcc_push started | + | |
| - | /opt/asterisk/scripts/astercc/asterccd start: astcc_datamover started | + | |
| - | /opt/asterisk/scripts/astercc/asterccd start: astcc_dialer started | + | |
| - | /opt/asterisk/scripts/astercc/asterccd start: asterccc started | + | |
| - | /opt/asterisk/scripts/astercc/asterccd start: astcc_watchdog started | + | |
| - | ***************************************************************** | + | |
| - | *******************astercc install finished********************** | + | |
| - | *****Your astercc web directory at /home/demo.astercc.com/html/app/webroot.****** | + | |
| - | *****Your astercc daemon directory at /opt/asterisk/scripts/astercc.*** | + | |
| - | ***************************************************************** | + | |
| - | </file> | + | |
| - | ====Install manually==== | + | we suggest to use ISO installation |
| - | ====Adjust http server config ==== | + | |
| - | ===Nginx=== | + | |
| - | open the nginx conf file, adjust the new path | ||
| - | <code> | ||
| - | vi /usr/local/nginx/conf/vhosts/demo.astercc.com.conf | ||
| - | </code> | ||
| - | new config should be like this after the adjustment | + | =====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 | ||
| - | <file> | + | {{:en:download_and_install:en_download.jpg?&650|}} |
| - | server | + | |
| - | { | + | |
| - | listen 80; | + | |
| - | client_max_body_size 20M; | + | |
| - | server_name demo.astercc.com; | + | |
| - | index index.html index.htm index.php; | + | |
| - | rewrite_log on; | + | |
| - | root /home/demo.astercc.com/html/app/webroot; | + | * 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>During the installation, the harddish will be formatted</note> | ||
| + | <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 | ||
| - | # CakePHP rewrite rules | + | {{:en:download_and_install:start_up.jpg|}} |
| - | location / { | + | |
| - | index index.php; | + | |
| - | if (-f $request_filename) { | + | * hit Enter to continue |
| - | break; | + | |
| - | } | + | |
| - | if (!-f $request_filename) { | + | |
| - | rewrite ^/(.+)$ /index.php?url=$1 last; | + | |
| - | break; | + | |
| - | } | + | |
| - | } | + | |
| - | location ~ .*\.(php|php5)?$ | + | {{:en:download_and_install:language.jpg|}} |
| - | { | + | |
| - | fastcgi_pass 127.0.0.1:9000; | + | |
| - | fastcgi_index index.php; | + | |
| - | include fastcgi_params; | + | |
| - | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | + | |
| - | } | + | |
| - | location ~ /\.ht { | + | * select the language during the installaion |
| - | deny all; | + | |
| - | } | + | |
| - | access_log /home/demo.astercc.com/log/access.log main; | + | |
| - | } | + | |
| - | </file> | + | |
| - | * then reload | + | {{:en:download_and_install:warning.jpg|}} |
| - | <code> | + | |
| - | /etc/init.d/nginx reload | + | |
| - | </code> | + | |
| - | ===Apache=== | + | |
| - | * modify the document root directory, it would be like this in httpd.conf | + | |
| - | <file> | + | |
| - | <VirtualHost *:80> | + | |
| - | <Directory /home/demo.astercc.com/html/app/webroot> | + | |
| - | Options FollowSymLinks | + | |
| - | AllowOverride All | + | |
| - | </Directory> | + | |
| - | DocumentRoot /home/demo.astercc.com/html/app/webroot | + | |
| - | ServerName demo.astercc.com | + | |
| - | ErrorLog /home/demo.astercc.com/log/error_log | + | |
| - | CustomLog home/demo.astercc.com/log/access_log common | + | |
| - | </VirtualHost> | + | |
| - | </file> | + | |
| - | * add .htaccess file | + | |
| - | create .htaccess file under webroot | + | |
| - | <file> | + | |
| - | <IfModule mod_rewrite.c> | + | |
| - | RewriteEngine On | + | |
| - | RewriteCond %{REQUEST_FILENAME} !-d | + | |
| - | RewriteCond %{REQUEST_FILENAME} !-f | + | |
| - | RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] | + | |
| - | AddType application/x-javascript .js | + | |
| - | AddType text/css .css | + | |
| - | </IfModule> | + | |
| - | </file> | + | |
| - | ======Login as Admin====== | + | * a warning that the hard disk will be format, select YES to continue |
| - | * astercc now support IE 7+ or firefox, we suggest the customers choose firefox, coz it's well tested | + | |
| - | [[http://www.mozilla.com?from=sfx&uid=307905&t=588|Download Latest Firefox Here]] | + | {{:en:download_and_install:partition.jpg|}} |
| - | {{:en:login_en.jpg|Login}} | + | * 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 |
| - | {{:en:system_messages_en.jpg?796|System Messages}} | + | * if you select use whole harddisk, it will give the WARNING, just select YES to continue |
| + | {{:en:download_and_install:warning_1.jpg|}} | ||
| - | ====Errors during installation====== | + | * select NO to skip re-check |
| - | * Web Error | + | |
| - | * Site error: the file /var/www/html/astercc/app/webroot/index.php requires the ionCube PHP Loader ioncube_loader_lin_5.2.so to be installed by the site administrator. | + | |
| - | when you get this error, means you missed ioncube loader, so go php.ini and make sure if you have | + | {{:en:download_and_install:review.jpg|}} |
| - | <file> | + | |
| - | zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.2.so | + | |
| - | </file> | + | |
| - | if it still doesnt work, try restart your apache or php_cgi | + | * select YES for network config |
| - | * Deamon Error | + | {{:en:download_and_install:network.jpg|}} |
| - | * Cant not file license file | + | |
| - | it's just a warning message, so even it doesnt find any license file, it will work use a default licese, a 4 agents license. | + | |
| - | * Perl Error | + | * use space key to enable IPV4 |
| - | Can't locate Config/IniFiles.pm in @inc... | + | |
| - | in astercc, it provides a email tools: astcc_mailman.pl, which is open source and will handle all email request from astercc, to use astcc_mailman, please read [[install astcc_mailman]] | + | {{:en:download_and_install:eth0.jpg|}} |
| + | * network config | ||
| + | {{:en:download_and_install:eth0_1.jpg|}} | ||
| - | {{tag>installation nginx}} | + | * config gateway and DNS |
| + | {{:en:download_and_install:network_1.jpg|}} | ||
| + | * set hostname of the server | ||
| + | {{:en:download_and_install:hostname.jpg|}} | ||
| - | {{topic>error}} | + | * select time zone |
| + | |||
| + | {{:en:download_and_install:timezone_sh.jpg|}} | ||
| + | |||
| + | * enter password of root user | ||
| + | |||
| + | <note important>please remember this password, and for security, please use a complex password</note> | ||
| + | |||
| + | {{:en:download_and_install:password.jpg|}} | ||
| + | |||
| + | * installation start, it will take about 10 minutes | ||
| + | |||
| + | <note important>During the installation, system will reboot, please make sure it start up from hard disk rather than CD-ROM </note> | ||
| + | |||
| + | {{:en:download_and_install:installation.jpg|}} | ||
| + | |||
| + | * When installation is done, you could will the login prompt | ||
| + | |||
| + | {{:en:download_and_install:login.jpg|}} | ||
| + | |||
| + | * login use user root and the password you sett during the installation, it will give the current IP of the server. | ||
| + | |||
| + | {{:en:download_and_install:login_1.jpg|}} | ||
| + | |||
| + | * open your browser, enter the IP address, if all goes well, you will see asterCC login page | ||
| + | |||
| + | <note important>asterCC supports the following browser: chrome,Firefox,IE9+</note> | ||
| + | |||
| + | {{: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> | ||