This is an old revision of the document!
For details:asterCC Installation
For details:How to perform asterCC system backup
First,you should enter the directory of the backup files that download via “wget” command,then execute commands following:
tar -xzvf astercc_files.tar.gz
After untar the backup file,we will untar the archive of database,we just need to execute commands following:
gunzip -c astercc_db.sql.gz > astercc_db.sqlIf finished,you can find the database file named “astercc_db.sql”.
Import backup files into the database through commands following:
mysql -u root -p astercc10 < XXXX.sqlBy the way,“astercc10” is the database name on the new server,“XXXX” is the file unzip from backup file of database,for example,here is “astercc_db”,So:
mysql -u root -p astercc10 < astercc_db.sql
At last,it prompts us to enter the secret of database.Under normal circumstances,the default secret is “astercc”.Now,the importing of database is finished.If the configuration of the old server is different from the new one, 需要对新服务器配置文件进行3处手动修改:
1.对astercc.conf→[database]中的相应信息进行修改,比如:dbname、username、password等等
vim /opt/asterisk/scripts/astercc/astercc.conf
2.对astercc.conf→[statistics]中的相应信息进行修改,比如:dbname、dbpassword等等
vim /opt/asterisk/scripts/astercc/astercc.conf
3.对database.php 最后面的 class DATABASE_CONFIG 中 default下的password、database等进行修改
vim /var/www/html/asterCC/app/config/database.php
restore folder: /var/spool/asterisk restore folder: /var/www/html/astercc/data restore folder: /var/lib/asterisk/ restore folder: /var/www/html/astercc/statistics