Text file of below is here:
http://prestonmoore.com/images/guide.txt
How to Install Asterisk 1.2.10 and FreePBX on CentOS 4
==========================================
KISS(Keep It Simple Stupid)
Install for non-Zaptel using "ztdummy"
CentOS 4 installation:
You will need to burn CD 1,2, and 3
I used graphical install mode
Use the "Custom" selection for the packages
Uncheck all boxes except the following packages:
Web Server
Mail Server
MySQL Database
Development Tools
-----------------------------------------------------------------------------------
yum -y update
yum install gcc libxml2-devel libtiff-devel mysql-server php-gd php-mysql kernel-devel bison ncurses-devel audiofile-devel subversion libogg-devel openssl-devel
rpm -ivh
http://apt.sw.be/redhat/el4/en/i386/...l4.rf.i386.rpm
reboot
------------------------------------------------------------------------------------
cd /usr/src
wget
http://easynews.dl.sourceforge.net/s...x-2.1.1.tar.gz
tar zxf freepbx-2.1.1.tar.gz
--------------------------------------------------------------------------------------
wget
http://ftp.digium.com/pub/asterisk/r...-1.2.10.tar.gz
tar -zxvf asterisk-1.2.10.tar.gz
mv asterisk-1.2.10 asterisk
wget
http://ftp.digium.com/pub/zaptel/rel...l-1.2.7.tar.gz
tar -zxvf zaptel-1.2.7.tar.gz
mv zaptel-1.2.7 zaptel
wget
http://ftp.digium.com/pub/libpri/rel...i-1.2.3.tar.gz
tar -zxvf libpri-1.2.3.tar.gz
mv libpri-1.2.3 libpri
wget
http://ftp.digium.com/pub/asterisk/r...s-1.2.3.tar.gz
tar -zxvf asterisk-addons-1.2.3.tar.gz
mv asterisk-addons-1.2.3 asterisk-addons
wget
http://ftp.digium.com/pub/asterisk/r...s-1.2.1.tar.gz
tar -zxvf asterisk-sounds-1.2.1.tar.gz
mv asterisk-sounds-1.2.1 asterisk-sounds
-------------------------------------------------------------------------------------------
cd /usr/src/zaptel
mv ztdummy.c ztdummy.c.orig
sed "s/if 0/if 1/" < ztdummy.c.orig > ztdummy.c
cd /usr/src/kernels/2.6.9-34.0.2.EL-i686/include/linux/
mv spinlock.h spinlock.h.orig
sed "s/rw_lock_t/rwlock_t/" < spinlock.h.orig > spinlock.h
cd /usr/src/zaptel
make linux26
make install
make config
cd /etc/sysconfig
nano zaptel
(comment out all modules EXCEPT "ztdummy")
modprobe zaptel
modprobe ztdummy
echo "modprobe ztdummy" >> /etc/rc.d/rc.local
reboot
-----------------------------------------------------------------------------------------------
cd /usr/src/libpri
make install
-----------------------------------------------------------------------------------------------
cd /usr/src/asterisk
mkdir /var/run/asterisk
make install
make config
-------------------------------------------------------------------------------------------------
useradd -c "Asterisk PBX" -d /var/lib/asterisk asterisk
chown asterisk /var/lib/php/session/
nano +227 /etc/httpd/conf/httpd.conf
(change User apache and Group apache to User asterisk and Group asterisk)
nano +311 /etc/httpd/conf/httpd.conf
(change AllowOverride None to AllowOverride All)
---------------------------------------------------------------------------------------------------
/etc/init.d/mysqld start
cd /usr/src/freepbx-2.1.1
mysqladmin create asterisk
mysqladmin create asteriskcdrdb
mysql asterisk < SQL/newinstall.sql
mysql asteriskcdrdb < SQL/cdr_mysql_table.sql
mysql
GRANT ALL PRIVILEGES ON asteriskcdrdb.* TO asteriskuser@localhost IDENTIFIED BY 'amp109';
GRANT ALL PRIVILEGES ON asterisk.* TO asteriskuser@localhost IDENTIFIED BY 'amp109';
\q
mysqladmin -u root password 'passwordhere'
(insert your password!)
--------------------------------------------------------------------------------------------------------
cd /usr/src/asterisk-addons
cp Makefile Makefile.orig
sed -i 's/SOURCE/SOURCE -DMYSQL_LOGUNIQUEID/' Makefile
make && make install
---------------------------------------------------------------------------------------------------------
cd /usr/src/asterisk-sounds
make install
----------------------------------------------------------------------------------------------------------
cd /usr/src/freepbx-2.1.1
./install_amp
(everything default except enter the IP address of your asterisk server when prompted with [xxx.xxx.xxx])
mkdir /var/lib/asterisk/sounds/custom
chmod 777 /var/lib/asterisk/sounds/custom
echo /usr/sbin/amportal start >> /etc/rc.local
chkconfig httpd on
chkconfig mysqld on
cd /etc/asterisk
mv zapata.conf.template zapata.conf
nano zapata.conf
(comment out all except the following:
[channels]
language=en
#include zapata_additional.conf)
reboot
------------------------------------------------------------------------------------------------------------
Congratulations!!!!!