Difference between revisions of "VoIP: Instalasi FreePBX untuk Asterisk"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 33: | Line 33: | ||
Setup [[database]] | Setup [[database]] | ||
− | # mysql - | + | # mysql --user root --password=123456 |
− | |||
create database freepbx; | create database freepbx; | ||
grant INSERT,SELECT on root.* to freepbx@localhost; | grant INSERT,SELECT on root.* to freepbx@localhost; | ||
Line 48: | Line 47: | ||
tar zxvf freepbx-2.6.0RC2.tar.gz | tar zxvf freepbx-2.6.0RC2.tar.gz | ||
+ | /usr/bin/mysqladmin -u root password '123456' | ||
+ | /usr/bin/mysqladmin -u root -h server password '123456' | ||
/usr/bin/mysql_install_db | /usr/bin/mysql_install_db | ||
/etc/init.d/mysqld start | /etc/init.d/mysqld start | ||
− | |||
mysqladmin --user=root --password=123456 create asteriskcdrdb | mysqladmin --user=root --password=123456 create asteriskcdrdb | ||
+ | mysql --user=root --password=123456 asteriskcdrdb < /usr/local/src/freepbx-2.6.0RC2/SQL/cdr_mysql_table.sql | ||
+ | mysqladmin --user=root --password=123456 create asterisk | ||
+ | mysql --user=root --password=123456 asterisk < /usr/local/src/freepbx-2.6.0RC2/SQL/newinstall.sql | ||
− | mysql --user | + | mysql --user root --password=123456 |
− | |||
− | |||
− | |||
− | |||
− | |||
GRANT ALL PRIVILEGES ON asteriskcdrdb.* TO asteriskuser@localhost IDENTIFIED BY 'amp109'; | GRANT ALL PRIVILEGES ON asteriskcdrdb.* TO asteriskuser@localhost IDENTIFIED BY 'amp109'; | ||
− | + | GRANT ALL PRIVILEGES ON asterisk.* TO asteriskuser@localhost IDENTIFIED BY 'amp109'; | |
quit | quit | ||
+ | cd /usr/local/src/freepbx-2.6.0RC2 | ||
+ | sudo ./install_amp | ||
+ | Creating new /etc/amportal.conf | ||
+ | Enter your USERNAME to connect to the 'asterisk' database: | ||
+ | [asteriskuser] | ||
+ | Enter your PASSWORD to connect to the 'asterisk' database: | ||
+ | [amp109] | ||
+ | Enter the hostname of the 'asterisk' database: | ||
+ | [localhost] | ||
+ | Enter a USERNAME to connect to the Asterisk Manager interface: | ||
+ | [admin] | ||
+ | Enter a PASSWORD to connect to the Asterisk Manager interface: | ||
+ | [amp111] | ||
+ | Enter the path to use for your AMP web root: | ||
+ | [/var/www/html] | ||
+ | /var/www/freepbx | ||
+ | Enter the IP ADDRESS or hostname used to access the AMP web-admin: | ||
+ | [xx.xx.xx.xx] 127.0.0.1 | ||
+ | Enter a PASSWORD to perform call transfers with the Flash Operator Panel: | ||
+ | [passw0rd] | ||
+ | Use simple Extensions [extensions] admin or separate Devices and Users [deviceanduser]? | ||
+ | [extensions] | ||
+ | Enter directory in which to store AMP executable scripts: | ||
+ | [/var/lib/asterisk/bin] | ||
+ | Created /var/lib/asterisk/bin | ||
+ | Enter directory in which to store super-user scripts: | ||
+ | [/usr/local/sbin] | ||
+ | Jika ingin di edit di kemudian hari | ||
− | + | vi /etc/amportal.conf | |
− | |||
− | + | Pastikan: | |
AMPBIN=/var/lib/asterisk/bin | AMPBIN=/var/lib/asterisk/bin | ||
Line 80: | Line 105: | ||
sudo adduser www-data asterisk | sudo adduser www-data asterisk | ||
sudo apache2ctl graceful | sudo apache2ctl graceful | ||
+ | |||
+ | ==Akses Web== | ||
+ | |||
+ | http://localhost/freepbx/ | ||
+ | |||
+ | |||
==Referensi== | ==Referensi== |
Revision as of 14:44, 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 --user root --password=123456 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/mysqladmin -u root password '123456' /usr/bin/mysqladmin -u root -h server password '123456' /usr/bin/mysql_install_db /etc/init.d/mysqld start mysqladmin --user=root --password=123456 create asteriskcdrdb mysql --user=root --password=123456 asteriskcdrdb < /usr/local/src/freepbx-2.6.0RC2/SQL/cdr_mysql_table.sql mysqladmin --user=root --password=123456 create asterisk mysql --user=root --password=123456 asterisk < /usr/local/src/freepbx-2.6.0RC2/SQL/newinstall.sql
mysql --user root --password=123456 GRANT ALL PRIVILEGES ON asteriskcdrdb.* TO asteriskuser@localhost IDENTIFIED BY 'amp109'; GRANT ALL PRIVILEGES ON asterisk.* TO asteriskuser@localhost IDENTIFIED BY 'amp109'; quit
cd /usr/local/src/freepbx-2.6.0RC2 sudo ./install_amp
Creating new /etc/amportal.conf Enter your USERNAME to connect to the 'asterisk' database: [asteriskuser] Enter your PASSWORD to connect to the 'asterisk' database: [amp109] Enter the hostname of the 'asterisk' database: [localhost] Enter a USERNAME to connect to the Asterisk Manager interface: [admin] Enter a PASSWORD to connect to the Asterisk Manager interface: [amp111] Enter the path to use for your AMP web root: [/var/www/html] /var/www/freepbx Enter the IP ADDRESS or hostname used to access the AMP web-admin: [xx.xx.xx.xx] 127.0.0.1 Enter a PASSWORD to perform call transfers with the Flash Operator Panel: [passw0rd] Use simple Extensions [extensions] admin or separate Devices and Users [deviceanduser]? [extensions] Enter directory in which to store AMP executable scripts: [/var/lib/asterisk/bin] Created /var/lib/asterisk/bin Enter directory in which to store super-user scripts: [/usr/local/sbin]
Jika ingin di edit di kemudian hari
vi /etc/amportal.conf
Pastikan:
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
Akses Web
http://localhost/freepbx/