Updating to the new version of A2Billing
1.Update files.
- go to /usr/src/
cd /usr/src
- create directory A2billing_133
mkdir A2billing_133 cd A2billing_133
- download the tar for the version 1.3.3
wget http://www.asterisk2billing.org/downloads/A2Billing_1.3.3.tar.gz
- unpack tar file
tar -zxvf A2Billing_1.3.3.tar.gz
- move the old Admin and customer interface to a backup folder & go to your webroot folder or location of your vhost make a folder in /home named backup
mkdir /home/backup mv -rf A2Billing_UI/ /home/backup mv -rf A2Customer_UI/ /home/backup
- if your document root of Apache is /var/www/html/ then copy the new admin and customer interface there, else check where is your admin and customer located and copy the directories there.
- now copy the new Admin and Customer interface.
cp -rf /usr/src/A2billing_133/A2Billing_UI /var/www/html cp -rf /usr/src/A2billing_133/A2BCutomer_UI /var/www/html
- Now move also the AGI into your backup folder
mv /usr/lib/asterisk/agi-bin/a2billing.php /home/backup mv -rf /usr/lib/asterisk/agi-bin/libs_a2billing /home/backup
- copy the new AGI
cp /usr/src/A2billing_133/A2Billing_AGI/a2billing.php /var/lib/asterisk/agi-bin cp -rf /usr/src/A2billing_133/A2Billing_AGI/libs_a2billing /var/lib/asterisk/agi-bin
- we are done with the files update.
- now chmod the smarty template folder.
chmod -R 777 /var/www/html/A2Billing_UI/templates_c chmod -R 777 /var/www/html/A2BCustomer_UI/templates_c
2. Update the database.
- We strongly advice to make a Database backup before going through this steps!
- check in the a2billing.conf the database name used by a2billing, username and password.
mysql -u <username> -p <databasename>
when prompted enter a password or if u don't use a password remove the -p tag
- now update the database
mysql>\. /usr/src/A2billing_133/DataBase/mysql/Mysql-5.x/UPDATE-a2billing-v1.3.2-to-v1.3.3-mysql.sql mysql> exit
