Difference between revisions of "Instalasi FreePBX Asterisk Management Portal"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
(15 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | Download dari | + | Sebelum melakukan instalasi FreePBX |
+ | |||
+ | * [[Instalasi Apache]] | ||
+ | * Install Asterisk | ||
+ | |||
+ | apt-get install asterisk asterisk-mysql | ||
+ | |||
+ | * Entah kenapa tampaknya agak rewel asterisk yang di install menggunakan apt-get install. Tampaknya lebih bagus kalau pakai cara [[Compile Asterisk di Ubuntu]] | ||
+ | * Atau dengan [[Compile Asterisk di Ubuntu]]. | ||
+ | * Cek apakah bisa beroperasi dengan baik dengan menjalankan | ||
+ | |||
+ | /usr/sbin/asterisk | ||
+ | |||
+ | Download [[source code]] FreePBX dari | ||
http://www.freepbx.org/download-freepbx | http://www.freepbx.org/download-freepbx | ||
http://mirror.freepbx.org/freepbx-2.7.0.tar.gz | http://mirror.freepbx.org/freepbx-2.7.0.tar.gz | ||
+ | |||
+ | cp freepbx-2.7.0.tar.gz /usr/local/src/ | ||
+ | cd /usr/local/src | ||
+ | tar zxvf freepbx-2.7.0.tar.gz | ||
+ | cd /usr/local/src/freepbx-2.7.0 | ||
Siapkan modul yang dibutuhkan | Siapkan modul yang dibutuhkan | ||
− | sudo apt-get install | + | sudo apt-get install libxml2 libxml2-dev libtiff4 libtiff4-dev lame apache2 mysql-client \ |
− | + | mysql-server php-mail php-pear php-xml-parser php-net-socket php-net-smtp php-http php-db \ | |
+ | openssl libssl-dev perl bison libncurses5-dev libaudiofile-dev curl sox \ | ||
+ | php5-mysql php-db mysql-server libapache2-mod-php5 php5-gd linux-source | ||
sudo a2enmod php5 | sudo a2enmod php5 | ||
Line 19: | Line 39: | ||
;default_charset = "ISO-8859-1" | ;default_charset = "ISO-8859-1" | ||
default_charset = "utf8"; | default_charset = "utf8"; | ||
+ | upload_max_filesize = 20M | ||
+ | |||
+ | Lakukan supaya asterisk bisa mengakses ke Web & PHP | ||
+ | |||
+ | sudo chown asterisk:asterisk /var/lib/php5 -R & | ||
+ | sudo chown asterisk:asterisk /var/www -R & | ||
+ | sudo /etc/init.d/apache2 restart | ||
− | |||
− | cd /usr/src/freepbx | + | ==Install MySQL database== |
+ | |||
+ | Setup MySQL | ||
+ | |||
+ | mysql -u root -p | ||
+ | create database asteriskcdrdb; | ||
+ | create database asterisk; | ||
+ | grant all on asteriskcdrdb.* to root@localhost identified by '123456'; | ||
+ | grant all on astersik.* to root@localhost identified by '123456'; | ||
+ | grant all on asteriskcdrdb.* to asteriskuser@localhost identified by 'amp109'; | ||
+ | grant all on asterisk.* to asteriskuser@localhost identified by 'amp109'; | ||
+ | quit | ||
+ | |||
+ | Misalnya root password 123456 | ||
+ | |||
+ | sudo mysql_install_db | ||
+ | cd /usr/local/src/freepbx-2.7.0/SQL | ||
+ | mysql -u root -p123456 asterisk < newinstall.sql | ||
+ | mysql -u root -p123456 asteriskcdrdb < cdr_mysql_table.sql | ||
+ | |||
+ | Bagi yang menggunakan password <chosen MySQL Password> dapat melakukan | ||
+ | |||
+ | sudo mysql_install_db | ||
+ | mysqladmin u root password ‘<chosen MySQL Password>’ | ||
+ | mysqladmin create asteriskcdrdb -p | ||
+ | mysqladmin create asterisk -p | ||
+ | mysql –user=root –password=<chosen MySQL Password> asterisk < ./SQL/newinstall.sql | ||
+ | mysql –user=root –password=<chosen MySQL Password> asteriskcdrdb < ./SQL/cdr_mysql_table.sql | ||
+ | |||
+ | ==Install FreePBX== | ||
+ | |||
+ | /etc/init.d/asterisk restart | ||
+ | cd /usr/local/src/freepbx-2.7.0 | ||
+ | sudo ln -sf /bin/bash /bin/sh | ||
+ | /usr/sbin/astersik | ||
+ | sudo ./start_asterisk start | ||
sudo ./install_amp | sudo ./install_amp | ||
− | + | 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 | ||
+ | Created /var/www/freepbx | ||
+ | Enter the IP ADDRESS or hostname used to access the AMP web-admin: | ||
+ | [xx.xx.xx.xx] 192.168.0.2 | ||
+ | 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] | ||
Pastikan Apache [[Web Server]] dapat mengakses file freepbx | Pastikan Apache [[Web Server]] dapat mengakses file freepbx | ||
+ | chown -Rf www-data:www-data /var/www/ & | ||
+ | chown -Rf www-data:asterisk /var/www/freepbx & | ||
+ | chmod -Rf 777 /var/www/ubuntu & | ||
+ | sudo chown -Rf www-data:asterisk /var/www/freepbx | ||
sudo adduser www-data asterisk | sudo adduser www-data asterisk | ||
sudo apache2ctl graceful | sudo apache2ctl graceful |
Latest revision as of 10:22, 20 April 2010
Sebelum melakukan instalasi FreePBX
- Instalasi Apache
- Install Asterisk
apt-get install asterisk asterisk-mysql
- Entah kenapa tampaknya agak rewel asterisk yang di install menggunakan apt-get install. Tampaknya lebih bagus kalau pakai cara Compile Asterisk di Ubuntu
- Atau dengan Compile Asterisk di Ubuntu.
- Cek apakah bisa beroperasi dengan baik dengan menjalankan
/usr/sbin/asterisk
Download source code FreePBX dari
http://www.freepbx.org/download-freepbx http://mirror.freepbx.org/freepbx-2.7.0.tar.gz
cp freepbx-2.7.0.tar.gz /usr/local/src/ cd /usr/local/src tar zxvf freepbx-2.7.0.tar.gz cd /usr/local/src/freepbx-2.7.0
Siapkan modul yang dibutuhkan
sudo apt-get install libxml2 libxml2-dev libtiff4 libtiff4-dev lame apache2 mysql-client \ mysql-server php-mail php-pear php-xml-parser php-net-socket php-net-smtp php-http php-db \ openssl libssl-dev perl bison libncurses5-dev libaudiofile-dev curl sox \ php5-mysql php-db mysql-server libapache2-mod-php5 php5-gd linux-source
sudo a2enmod php5
Edit untuk lokalisasi agar berjalan dengan baik
vi /etc/php5/apache2/php.ini
; PHP's built-in default is text/html default_mimetype = "text/html" ;default_charset = "ISO-8859-1" default_charset = "utf8"; upload_max_filesize = 20M
Lakukan supaya asterisk bisa mengakses ke Web & PHP
sudo chown asterisk:asterisk /var/lib/php5 -R & sudo chown asterisk:asterisk /var/www -R & sudo /etc/init.d/apache2 restart
Install MySQL database
Setup MySQL
mysql -u root -p create database asteriskcdrdb; create database asterisk; grant all on asteriskcdrdb.* to root@localhost identified by '123456'; grant all on astersik.* to root@localhost identified by '123456'; grant all on asteriskcdrdb.* to asteriskuser@localhost identified by 'amp109'; grant all on asterisk.* to asteriskuser@localhost identified by 'amp109'; quit
Misalnya root password 123456
sudo mysql_install_db cd /usr/local/src/freepbx-2.7.0/SQL mysql -u root -p123456 asterisk < newinstall.sql mysql -u root -p123456 asteriskcdrdb < cdr_mysql_table.sql
Bagi yang menggunakan password <chosen MySQL Password> dapat melakukan
sudo mysql_install_db mysqladmin u root password ‘<chosen MySQL Password>’ mysqladmin create asteriskcdrdb -p mysqladmin create asterisk -p mysql –user=root –password=<chosen MySQL Password> asterisk < ./SQL/newinstall.sql mysql –user=root –password=<chosen MySQL Password> asteriskcdrdb < ./SQL/cdr_mysql_table.sql
Install FreePBX
/etc/init.d/asterisk restart cd /usr/local/src/freepbx-2.7.0 sudo ln -sf /bin/bash /bin/sh /usr/sbin/astersik sudo ./start_asterisk start sudo ./install_amp
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 Created /var/www/freepbx Enter the IP ADDRESS or hostname used to access the AMP web-admin: [xx.xx.xx.xx] 192.168.0.2 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]
Pastikan Apache Web Server dapat mengakses file freepbx
chown -Rf www-data:www-data /var/www/ & chown -Rf www-data:asterisk /var/www/freepbx & chmod -Rf 777 /var/www/ubuntu & sudo chown -Rf www-data:asterisk /var/www/freepbx sudo adduser www-data asterisk sudo apache2ctl graceful
Referensi
- http://sourceforge.net/projects/amportal/files/
- http://www.freepbx.org/
- http://www.freepbx.org/download-freepbx