Difference between revisions of "VoIP: Instalasi FreePBX untuk Asterisk"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 44: | Line 44: | ||
==Install FreePBX== | ==Install FreePBX== | ||
− | cp | + | cp freepbx-2.6.0RC2.tar.gz /usr/local/src/ |
+ | cd /usr/local/src | ||
+ | tar zxvf freepbx-2.6.0RC2.tar.gz | ||
+ | |||
+ | /usr/bin/mysql_install_db | ||
+ | /etc/init.d/mysqld start | ||
+ | mysqladmin | ||
+ | mysqladmin --user=root --password=123456 create asteriskcdrdb | ||
+ | |||
+ | mysql --user=root --password=123456 asteriskcdrdb < /usr/src/freepbx<version>/SQL/cdr_mysql_table.sql | ||
+ | mysqladmin create asterisk -p | ||
+ | mysql --user root -p asterisk < /usr/src/freepbx<version>/SQL/newinstall.sql | ||
+ | |||
+ | mysql --user root -p | ||
+ | password: | ||
+ | GRANT ALL PRIVILEGES ON asteriskcdrdb.* TO asteriskuser@localhost IDENTIFIED BY 'amp109'; | ||
+ | mysql> GRANT ALL PRIVILEGES ON asterisk.* TO asteriskuser@localhost IDENTIFIED BY 'amp109'; | ||
+ | quit | ||
+ | |||
+ | |||
+ | |||
cd /usr/src/freepbx | cd /usr/src/freepbx |
Revision as of 14:32, 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 freepbx-2.6.0RC2.tar.gz /usr/local/src/ cd /usr/local/src tar zxvf freepbx-2.6.0RC2.tar.gz
/usr/bin/mysql_install_db /etc/init.d/mysqld start mysqladmin mysqladmin --user=root --password=123456 create asteriskcdrdb
mysql --user=root --password=123456 asteriskcdrdb < /usr/src/freepbx<version>/SQL/cdr_mysql_table.sql mysqladmin create asterisk -p mysql --user root -p asterisk < /usr/src/freepbx<version>/SQL/newinstall.sql
mysql --user root -p password: GRANT ALL PRIVILEGES ON asteriskcdrdb.* TO asteriskuser@localhost IDENTIFIED BY 'amp109'; mysql> GRANT ALL PRIVILEGES ON asterisk.* TO asteriskuser@localhost IDENTIFIED BY 'amp109'; quit
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