This is an old revision of the document!
there are three ways to install asterCC Commercial
we suggest to use the installation script
* first go to http://astercc.org/downloads, download the script for asterCC Commercial installation
for Redhad/Centos using install_asterCC_Commercial_CentOS
for Debian/Ubuntu using install_asterCC_Commercial_Ubuntu
for CentOS/Redhat
wget http://astercc.org/download/install_asterCC_Commercial_CentOS.sh chmod +x ./install_asterCC_Commercial_CentOS.sh ./install_asterCC_Commercial_CentOS.sh
for Ubuntu
wget http://astercc.org/download/install_asterCC_Commercial_Ubuntu.sh chmod +x ./install_asterCC_Commercial_Ubuntu.sh ./install_asterCC_Commercial_Ubuntu.sh
root@ubuntu:/usr/src/astercc-1.1-beta# asterisk -r Asterisk 1.6.2.13, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. 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' for details. ========================================================================= Connected to Asterisk 1.6.2.13 currently running on ubuntu (pid = 816) ubuntu*CLI>quit
mkdir /var/www/html wget http://astercc.org/download/asterCC-1.1-beta.tar.gz tar zxf asterCC-1.1-beta.tar.gz cd asterCC-1.1-beta chmod +x ./install.sh ./install.sh
echo "init-file=/var/www/html/astercc/app/db-init.sql" >> /etc/mysql/conf.d/astercc.cnf /etc/init.d/mysql restart
mkdir /var/www/html/astercc/http-log
cat > /usr/local/nginx/conf/nginx.conf << EOF
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
log_format main '\$remote_addr - \$remote_user [$time_local] "\$request" '
'\$status \$body_bytes_sent "\$http_referer" '
'"\$http_user_agent" "\$http_x_forwarded_for"';
#access_log logs/access.log main;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#gzip on;
server
{
listen 80 default;
client_max_body_size 20M;
index index.html index.htm index.php;
root /var/www/html/astercc/app/webroot;
location / {
index index.php;
if (-f \$request_filename) {
break;
}
if (!-f \$request_filename) {
rewrite ^/(.+)\$ /index.php?url=\$1 last;
break;
}
location /agentindesks/pushagent {
set \$push_channel_id \$arg_channel; #static channel id
push_publisher;
# push_message_timeout 5m;
push_message_buffer_length 15;
push_channel_group pushmodule_chat;
}
location /agentindesks/agentpull {
set \$push_channel_id \$arg_channel; #static channel id
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 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|wav)$
{
access_log off;
expires 15d;
}
location ~ .*\.(js|css)?$
{
expires 1d;
}
access_log /var/www/html/astercc/http-log/access.log main;
}
}
EOF
service nginx restartnow use your browser to visit the server, you should see astercc login page, login as admin/admin which is default administrator account.
echo "asterisk ALL=NOPASSWD :/etc/init.d/asterisk" >> /etc/sudoers