这是本文档旧的修订版!
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
***************************************************************** ****************** 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):cn 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.*** *****************************************************************
打开配置文件,调整一下新的路径
vi /usr/local/nginx/conf/vhosts/demo.astercc.com.conf修改后的相应配置如下
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;
# CakePHP rewrite rules
location / {
index index.php;
if (-f $request_filename) {
break;
}
if (!-f $request_filename) {
rewrite ^/(.+)$ /index.php?url=$1 last;
break;
}
}
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 ~ /\.ht {
deny all;
}
access_log /home/demo.astercc.com/log/access.log main;
}
/etc/init.d/nginx reload
<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>
在webroot目录下建立.htaccess文件,内容如下
<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>
因为我们的开发和测试工作主要是使用firefox完成的
PHP Loader ioncube_loader_lin_5.2.so to be installed by the site administrator.
当你看到这个错误, 意味着你没有载入 ioncube loader, 请打开 php.ini 确认文件中有如下内容
zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.2.so
如果仍然出现错误,请重启apache或者php_cgi
实际上这只是一个警告信息,当系统没有找到许可文件的时候,它将使用一个默认的许可
'astercc10'; database exists'
22222222222222出现此信息表明数据库中已经存在了名为astercc10的数据库,请进入mysql删除此数据库后重新安装 222222222222222222222222222
Can't locate Config/IniFiles.pm in @inc…
astercc中提供了一个叫做astcc_mailman.pl的perl程序,用于处理astercc中的邮件请求,为了正确使用这
个功能,您可以阅读安装 astcc_mailman,另外这个文件是开源的。
**继续阅读添加团队 **