Difference between revisions of "VoIP: Instalasi FreePBX untuk Asterisk"

From OnnoWiki
Jump to navigation Jump to search
Line 43: Line 43:
  
 
==Install FreePBX==
 
==Install FreePBX==
 +
 +
cp
  
 
  cd /usr/src/freepbx
 
  cd /usr/src/freepbx
Line 58: Line 60:
 
  sudo adduser www-data asterisk
 
  sudo adduser www-data asterisk
 
  sudo apache2ctl graceful
 
  sudo apache2ctl graceful
 
  
 
==Referensi==
 
==Referensi==

Revision as of 14:19, 2 January 2010

Download source code

http://mirror.freepbx.org/freepbx-2.6.0RC2.tar.gz
apt-get install subversion
mkdir /var/www/freepbx
svn co http://www.freepbx.org/v3/svn/trunk/ /var/www/freepbx/


Instal Software Pendukung

apt-get install asterisk asterisk-dev asterisk-config asterisk-sounds-main \
asterisk-sounds-extra dahdi gastman asterisk-mysql\
php5-mysql php-db mysql-server libapache2-mod-php5 php5-gd php-pear sox curl php5-curl apache2
sudo a2enmod php5

Edit /etc/php5/apache2/php.ini

vi /etc/php5/apache2/php.ini

Modifikasi supaya

; PHP's built-in default is text/html
default_mimetype = "text/html"
;default_charset = "ISO-8859-1"
default_charset = "utf8";
upload_max_filesize = 5M
max_execution_time = 60
max_input_time = 120
memory_limit = 32M

Setup database

# mysql -u root -p
Enter password:
create database freepbx;
grant INSERT,SELECT on root.* to freepbx@localhost;
grant ALL on freepbx.* to freepbx@localhost identified by 'freepbx';
grant ALL on freepbx.* to freepbx identified by 'freepbx';
exit


Install FreePBX

cp 
cd /usr/src/freepbx
sudo ./install_amp

Perubahan agar FreePBX bisa bekerja dengan Asterisk di Ubuntu

AMPBIN=/var/lib/asterisk/bin
ASTAGIDIR=/usr/share/asterisk/agi-bin
AMPWEBROOT=/var/www/freepbx
FOPWEBROOT=/var/www/freepbx/panel

Pastikan FreePBX bisa mengakses Asterisk

sudo adduser www-data asterisk
sudo apache2ctl graceful

Referensi

Pranala Menarik