centos5.4+asterisk1.8+freepbx2.8 Installation Notes

Source: Internet
Author: User
Tags openssl pear

Yum Update

Yum install Kernel-devel bison bison-devel php ncurses-devel zlib-devel openssl-devel gnutls-devel gcc gcc-c++ libx ML2 libxml2-devel MySQL php-mysql mysql-devel mysql-server

Cd/usr/src

wget http://mirror.freepbx.org/freepbx-2.8.1.tar.gz

wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-1.8.2.4.tar.gz

wget http://nchc.dl.sourceforge.net/project/lame/lame/3.98.4/lame-3.98.4.tar.gz

Tar xvf libpri-1.4.11.5.tar.gz

CD libpri-1.4.11.5

Make

Make install

Cd..

Tar xvf dahdi-linux-complete-2.4.0+2.4.0.tar.gz

CD dahdi-linux-complete-2.4.0+2.4.0

Make all

Make install

Make Config

Cd..

Tar xvf asterisk-1.8.2.4.tar.gz

CD asterisk-1.8.2.4

./configure

Make MenuSelect

Choose

Make

Make install

Make samples

Make Config

Cd..

Vi/etc/sysconfig/selinux

Set selinux=disabled

Yum install libtiff-devel php4-pear perl-cpan audiofile-devel PHP-GD sox php-pear-db

Rpm-q LIBXML2

Rpm-q Libxml2-devel

Rpm-q Libtiff

Rpm-q Libtiff-devel

Rpm-q Lame

Rpm-q httpd

Rpm-q MySQL

Rpm-q Mysql-devel

Rpm-q Mysql-server

Rpm-q PHP

Rpm-q Php4-pear

Rpm-q Php-mysql

Rpm-q PHP-GD

Rpm-q OpenSSL

Rpm-q Openssl-devel

Rpm-q Kernel-devel

Rpm-q Perl

Rpm-q Perl-cpan

RPM-Q Bison

Rpm-q Ncurses-devel

Rpm-q Audiofile-devel

Rpm-q Curl

Rpm-q Sox

Tar xvf lame-3.98.4.tar.gz

CD lame-3.98.4

./configure

Make

Make instal

Tar xvf freepbx-2.8.1.tar.gz

CD freepbx-2.8.1

./start_asterisk Start

The point to note here is that. First, we have to. mysql password set to null, easy to run the following command (establish the relevant asterisk database)

Mysqladmin Create asterisk

Mysqladmin Create Asteriskcdrdb

MySQL Asterisk < Sql/newinstall.sql

MySQL Asteriskcdrdb < Sql/cdr_mysql_table.sql

-MySQL--user root-p

Mysql> GRANT all privileges in asteriskcdrdb.* to asteriskuser@localhost identified by ' amp109 ';

Query OK, 0 rows Affected (0.00 sec)

Mysql> GRANT all privileges in asterisk.* to asteriskuser@localhost identified by ' amp109 ';

Query OK, 0 rows Affected (0.00 sec)

Mysql> quit

Service Iptables Stop

Vi/etc/httpd/conf/httpd.conf

Asterisk

Asterisk

cd/var/www/html/

CHOWN-RVF Asterisk:asterisk *

cd/usr/local/sbin/

chmod 777 Amportal

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.