Installing ASTBILL on Debian
1) install base system
2) apt-get update
3) apt-get upgrade
4) apt-get dist-upgrade (REBOOT TO GET NEW KERNEL IMAGE)
5) cd /usr/src
6) download newest update from http://sourceforge.net/projects/astbill/
7) apt-get install bzip2 unp
8) unp astbill-x.x.xx.tar.bz2
9) nano /etc/apt/sources.list #remove cd rom reference if it exists
10) apt-get install mysql-server-5.0
11) mysqladmin -u root password 'xxx' #set your root database password
12) mkdir /home/astbill; cp -r /usr/src/trunk2/* /home/astbill
13) cd /home/astbill
14) mysqladmin create astbill --user=root -p
15) mysql --user=root -p astbill < /home/astbill/database/astbill.sql
16) mysql --user=root -p astbill < /home/astbill/database/astbill_proc.sql
17) cd /usr/src
18) wget http://ftp.digium.com/pub/asterisk/asterisk-1.2.14.tar.gz (needs to be 1.2.x)
19) wget http://ftp.digium.com/pub/zaptel/releases/zaptel-1.2.12.tar.gz
20) wget http://ftp.digium.com/pub/libpri/releases/libpri-1.2.4.tar.gz
21) wget http://ftp.digium.com/pub/asterisk/releases/asterisk-addons-1.2.5.tar.gz
22) wget http://ftp.digium.com/pub/asterisk/releases/asterisk-sounds-1.2.1.tar.gz
23) unp *.gz
24) uname -a #read the output and decide which kernel headers you need
25) apt-get install linux-headers-x.x.xx-xx-xxx (needs to be 2.6.x)
26) apt-get install ncurses-base libncurses5-dev libncurses5 openssl libssl-dev zlib1g zlib1g-dev zlibc
27) cd zaptel-1.2; make clean; make; make install; cd ../libpri-1.2;
make clean; make; make install; cd ../asterisk-1.2;make clean; make; make install (you will need to use common sense when doing this)
28) apt-get install libmysqlclient15-dev
29) cd ../asterisk-addons-1.2.x
30) make clean; make; make install
31) make sure that /usr/lib/asterisk/modules/res_config_mysql.so exists... if not then something went wrong when you compiled (prob need a dev package relating to mysql)
32) cd ../asterisk-sounds-1.2.x; make clean; make; make install
33) apt-get install libdbi-perl perl libdbd-mysql-perl
34) apt-get install apt-get install apache2 libapache2-mod-php4 php4-mysql php4 (doesn't work with php5,if you get errors restart apache)
35) cd /home/astbill (yes it does have to be in this location)
36) chmod +x install.sh; ./install.sh
37) nano /etc/asterisk/res_mysql.conf (put the correct values in here...you can figure it out!)
38) ln -s /home/astbill/wwwroot /var/www/astbill
39) nano /home/astbill/astbill.conf
40) nano /home/astbill/wwwroot/sites/default/settings.php
41) ctrl+w (search for and change $db_url and $base_url to correct values)
42) open firefox and go to the web site, you should get a logon prompt.
43) nano /etc/php4/apache2/php.ini (uncomment out extension=mysql.so & extension=gd.so so it will load)
44) start asterisk

Recent comments
39 weeks 3 days ago
49 weeks 4 days ago
49 weeks 4 days ago
1 year 2 weeks ago
1 year 9 weeks ago
1 year 11 weeks ago
1 year 23 weeks ago
1 year 23 weeks ago
1 year 24 weeks ago
1 year 38 weeks ago