This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en:download_and_install:installation [2012/01/31 02:24] – created wangl | en:download_and_install:installation [2017/08/02 09:59] (current) – [using installation script] donnie | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====Information needed during installation==== | + | ====== asterCC Installation ====== |
| - | * astercc codes | + | |
| - | * username/ | + | |
| - | < | + | |
| - | in this tutorial, we assume mysql username is root, password is passw0rd | + | |
| - | </ | + | |
| - | * path for astercc web scripts | + | |
| - | < | + | |
| - | in this tutorial, we assume the path is / | + | |
| - | </ | + | |
| - | * [[asterisk AMI username/ | + | |
| - | < | + | |
| - | in this tutorial, we assume AMI username is astercc, password is astercc | + | |
| - | </ | + | |
| - | ====Install with the install.sh==== | + | there are two ways to install |
| - | <note warning> | + | * automatic |
| - | install astercc may crash your old asterisk gui system. | + | * install |
| - | </ | + | |
| - | < | + | |
| - | wget http:// | + | |
| - | tar zxvf astercc10_beta_rc1.tar.gz | + | |
| - | cd astercc10_beta_rc1 | + | |
| - | chmod +x install.sh | + | |
| - | ./ | + | |
| - | </ | + | |
| - | < | + | |
| - | ***************************************************************** | + | |
| - | ****************** 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): | + | |
| - | database bin path(default / | + | |
| - | If database:' | + | |
| - | else press ' | + | |
| - | Please enter the Asterisk infomation: | + | |
| - | Asterisk Host(default 127.0.0.1): | + | |
| - | Asterisk Manager API port(default 5038): | + | |
| - | AMI User name: | + | |
| - | AMI User password: | + | |
| - | Please enter install | + | |
| - | astercc directory(defalut / | + | |
| - | Please enter absolute path of asterisk etc | + | |
| - | asterisk etc (default / | + | |
| - | SETTING FILE PERMISSIONS... | + | |
| - | Please choose the system default language | + | |
| - | en or cn (default en): | + | |
| - | Setting asterisk run as user: | + | |
| - | Are you want to load demo data to new astercc | + | |
| - | Press ' | + | |
| - | Restarting asterisk... | + | |
| - | Stopping safe_asterisk: | + | |
| - | Shutting down asterisk: | + | |
| - | Starting asterisk: | + | |
| - | Are you want to auto start astercc daemon when system startup? | + | |
| - | Must be redhat-release system | + | |
| - | Press ' | + | |
| - | Are you want to start astercc daemon now? | + | |
| - | Press ' | + | |
| - | starting asterccd... | + | |
| - | / | + | |
| - | / | + | |
| - | / | + | |
| - | / | + | |
| - | / | + | |
| - | / | + | |
| - | / | + | |
| - | ***************************************************************** | + | |
| - | *******************astercc | + | |
| - | *****Your astercc web directory at / | + | |
| - | *****Your astercc daemon directory at / | + | |
| - | ***************************************************************** | + | |
| - | </ | + | |
| - | ====Install manually==== | + | we suggest to use ISO installation |
| - | ====Adjust http server config ==== | + | |
| - | ===Nginx=== | + | |
| - | open the nginx conf file, adjust the new path | ||
| - | < | ||
| - | vi / | ||
| - | </ | ||
| - | new config should be like this after the adjustment | + | =====use ISO CD for automatic installation===== |
| + | * first go to http:// | ||
| - | < | + | {{: |
| - | server | + | |
| - | { | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | index index.html index.htm index.php; | + | |
| - | | + | |
| - | | + | * 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 | ||
| - | # CakePHP rewrite rules | + | {{: |
| - | | + | |
| - | index index.php; | + | |
| - | if (-f $request_filename) { | + | * hit Enter to continue |
| - | | + | |
| - | } | + | |
| - | if (!-f $request_filename) { | + | |
| - | | + | |
| - | | + | |
| - | } | + | |
| - | } | + | |
| - | | + | {{:en: |
| - | { | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | } | + | |
| - | | + | * select the language during the installaion |
| - | deny all; | + | |
| - | } | + | |
| - | | + | |
| - | } | + | |
| - | </ | + | |
| - | * then reload | + | {{:en: |
| - | < | + | |
| - | / | + | |
| - | </ | + | |
| - | ===Apache=== | + | |
| - | * modify the document root directory, it would be like this in httpd.conf | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | Options FollowSymLinks | + | |
| - | AllowOverride All | + | |
| - | </ | + | |
| - | DocumentRoot / | + | |
| - | ServerName demo.astercc.com | + | |
| - | ErrorLog / | + | |
| - | CustomLog home/ | + | |
| - | </ | + | |
| - | </ | + | |
| - | * add .htaccess file | + | |
| - | create .htaccess file under webroot | + | |
| - | < | + | |
| - | < | + | |
| - | RewriteEngine On | + | |
| - | RewriteCond %{REQUEST_FILENAME} !-d | + | |
| - | RewriteCond %{REQUEST_FILENAME} !-f | + | |
| - | RewriteRule ^(.*)$ index.php? | + | |
| - | AddType application/ | + | |
| - | AddType text/css .css | + | |
| - | </ | + | |
| - | </ | + | |
| - | ======Login as Admin====== | + | * a warning that the hard disk will be format, select YES to continue |
| - | | + | |
| - | [[http:// | + | {{:en: |
| - | {{: | + | * 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 |
| + | {{: | ||
| - | ====Errors during installation====== | + | * select NO to skip re-check |
| - | | + | |
| - | * Site error: the file / | + | |
| - | when you get this error, means you missed ioncube loader, so go php.ini and make sure if you have | + | {{: |
| - | < | + | |
| - | zend_extension = / | + | |
| - | </ | + | |
| - | if it still doesnt work, try restart your apache or php_cgi | + | * select YES for network config |
| - | * Deamon Error | + | {{: |
| - | * 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. | + | |
| - | | + | * use space key to enable IPV4 |
| - | Can't locate Config/ | + | |
| - | 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, | + | {{:en: |
| + | * network config | ||
| + | {{: | ||
| - | {{tag> | + | * config gateway and DNS |
| + | {{: | ||
| + | * set hostname of the server | ||
| + | {{: | ||
| - | {{topic>error}} | + | * select time zone |
| + | |||
| + | {{: | ||
| + | |||
| + | * enter password of root user | ||
| + | |||
| + | <note important>please remember this password, and for security, please use a complex password</ | ||
| + | |||
| + | {{: | ||
| + | |||
| + | * 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/ | ||
| + | < | ||
| + | wget http:// | ||
| + | chmod +x ./ | ||
| + | ./ | ||
| + | </ | ||
| + | |||
| + | for Ubuntu | ||
| + | < | ||
| + | wget http:// | ||
| + | chmod +x ./ | ||
| + | ./ | ||
| + | </ | ||