asterisk, Vtiger and hylafax on Debian lenny

Debian lenny

# lspci

01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 01)
04:01.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
04:02.0 Non-VGA unclassified device: Motorola Wildcard X100P

# cat /etc/apt/sources.list
deb ftp://ftp.debianclub.org/debian lenny main contrib non-free
deb http://security.debian.org/ lenny/updates main
# aptitude update ; aptitude upgrade -y

Asterisk 1.8

# aptitude install bison ncurses-dev libssl-dev zlib1g-dev initrd-tools cvs procps libxml2-dev make build-essential linux-headers-$(uname -r) -y

1. LibPri
# cd /usr/src
/usr/src# wget http://downloads.asterisk.org/pub/telephony/libpri/releases/libpri-1.4.11.5.tar.gz
/usr/src# tar xvzf libpri-1.4.11.5.tar.gz
/usr/src# cd libpri-1.4.11.5
/usr/src/
libpri-1.4.11.5# make
/usr/src/libpri-1.4.11.5# make install
/usr/src/libpri-1.4.11.5# make install

2. DAHDI
# cd /usr/src
/usr/src# wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/releases/dahdi-linux-complete-2.4.0+2.4.0.tar.gz
/usr/src# tar xvzf dahdi-linux-complete-2.4.0+2.4.0.tar.gz
/usr/src# cd dahdi-linux-complete-2.4.0+2.4.0
/usr/src/dahdi-linux-complete-2.4.0+2.4.0# make
/usr/src/dahdi-linux-complete-2.4.0+2.4.0# make install
/usr/src/dahdi-linux-complete-2.4.0+2.4.0# make config

3. Asterisk
# cd /usr/src
/usr/src# wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-1.8.2.2.tar.gz
/usr/src# tar xvzf asterisk-1.8.2.2.tar.gz
/usr/src# cd asterisk-1.8.2.2
/usr/src/asterisk-1.8.2.2# ./configure
/usr/src/asterisk-1.8.2.2# make
/usr/src/asterisk-1.8.2.2# make install
/usr/src/asterisk-1.8.2.2# make samples
/usr/src/asterisk-1.8.2.2# make config

# dahdi_genconf
#  dahdi_cfg -vv

asterickvtiger*CLI> core show version
Asterisk 1.8.2.2 built by root @ astiger on a i686 running Linux on 2011-01-25 10:22:42 UTC

Vtiger

vtiger CRM 5.2.1
# aptitude install binutils cpp flex gcc  libarchive-zip-perl libc6-dev libcompress-zlib-perl libpcre3 libpopt-dev lynx m4 make  ncftp nmap openssl perl perl-modules unzip zip zlib1g-dev autoconf automake1.9 libtool bison autotools-dev gcc libpng12-dev libjpeg62-dev libfreetype6-dev libssl-dev libxml2-dev libxml2 php5-mysql php5-imap php5-gd unzip php5 apache2 mysql-server libapache2-mod-auth-mysql  libapache2-mod-php5 php5-cli php5-common php5-cgi -y
# nano /etc/php5/conf.d/vtiger.ini
insert

; vTiger PHP configuration.
safe_mode                       = off
memory_limit                    = 64M
max_execution_time              = 600
output_buffering                = On
post_max_size                   = 18M
upload_max_filesize             = 10M
allow_call_time_pass_reference  = On
error_reporting                 = E_WARNING & ~E_NOTICE
; Unsecure vtiger recommendations.
; display_errors = On
; error_reporting = E_WARNING & ~E_NOTICE & ~E_DEPRECATED
; log_errors = Off

# mysql -u root -p

mysql> CREATE DATABASE vtiger DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
mysql> GRANT ALL ON vtiger.* TO ‘vtigeruser’@’localhost’ IDENTIFIED BY ‘YourPassword’;

# cd /var/www
/var/www# wget “http://sourceforge.net/projects/vtigercrm/files/vtiger%20CRM%205.2.1/Core%20Product/vtigercrm-5.2.1.tar.gz/download”
/var/www# tar xvzf vtigercrm-5.2.1.tar.gz
/var/www# rm index.html
/var/www# mv vtigercrm/* .
/var/www# chown -R www-data:www-data /var/www/
/var/www# /etc/init.d/apache2 restart

Now open your browser and point to your ip-address or domain name 😉

Hylafax

กำลังเขียน