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.We need modify 3 configurations of the new server manually which different from the old one:
1.In astercc.conf→[database],such as:dbname、username、password
vim /opt/asterisk/scripts/astercc/astercc.conf
2.In astercc.conf→[statistics],for example:dbname、dbpassword
vim /opt/asterisk/scripts/astercc/astercc.conf
3.At bottom of database.php,Under “class DATABASE_CONFIG → default”,for example:password、database
vim /var/www/html/asterCC/app/config/database.php
Execute the following command one by one:
\cp -rpf ./etc/* /etc
\cp -rpf ./opt/* /opt
\cp -rpf ./var/* /var
After finished operations above,we should reloading the configure of system next. We just find “reloadconf.sh” in /opt/asterisk/scripts/astercc/ ,and execute it by “./”
./reloadconf.sh
After restoring astercc system,if you get “Permission denied!” after click the reload tip。You should execute command following:
chmod 777 /var/www/html/asterCC/cake/console/cake
After executing command,please restart asterccd,if it not worked,you can continue to execute commands following:
chown -R asterisk.asterisk /var/www/html/asterCC/ chown -R asterisk.asterisk /etc/asterisk