Difference between revisions of "Instalasi OpenSER administrator"
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
(22 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | OpenSER administrator adalah alternatif tool untuk konfigurasi OpenSER. | ||
+ | Saat ini masih belum stabil. | ||
+ | |||
Install Ruby | Install Ruby | ||
− | # apt-get install ruby | + | # apt-get install ruby libruby1.8-extras |
Instalasi Dukungan Ruby untuk MySQL | Instalasi Dukungan Ruby untuk MySQL | ||
# apt-get install rubygems | # apt-get install rubygems | ||
+ | |||
+ | |||
+ | Alternatif lain, compile ruby & rubygems tampaknya ini lebih baik. Download Ruby & RubyGems dari | ||
+ | |||
+ | http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6.tar.gz | ||
+ | http://rubyforge.org/frs/download.php/29548/rubygems-1.0.1.tgz | ||
+ | |||
+ | Lakukan langkah berikut untuk mengcompile ruby | ||
+ | |||
+ | # apt-get install kernel-package libncurses5-dev fakeroot wget bzip2 g++ libssl-dev | ||
+ | |||
+ | # cp ruby-1.8.6.tar.gz /usr/local/src/ | ||
+ | # cd /usr/local/src/ | ||
+ | # tar zxvf ruby-1.8.6.tar.gz | ||
+ | # cd /usr/local/src/ruby-1.8.6 | ||
+ | # ./configure | ||
+ | # make | ||
+ | # make install | ||
+ | |||
+ | Lakukan untuk menginstall rubygems | ||
+ | |||
+ | # rubygems-1.0.1.tgz /usr/local/src/ | ||
+ | # tar zxvf rubygems-1.0.1.tgz | ||
+ | # cd /usr/local/src/rubygems-1.0.1 | ||
+ | # ruby setup.rb | ||
+ | |||
+ | Install Ruby on Rails & dukungan untuk MySQL | ||
+ | |||
+ | # gem install rails --include-dependencies | ||
+ | |||
+ | Alternatif lain dalam menginstall rails. Ambil file rails-2.0.2.zip dari | ||
+ | http://rubyforge.org/frs/?group_id=307 | ||
+ | |||
+ | # cp rails-2.0.2.zip /usr/local/src | ||
+ | # unzip rails-2.0.2.zip | ||
+ | |||
+ | Tampaknya alternatif untuk menginstall rails tidak terlalu di perlukan. Menggunakan gem install rails cukup baik. | ||
+ | |||
+ | Instalasi dukungan MySQL | ||
+ | |||
+ | # apt-get install mysql-server libmysqlclient15-dev | ||
# gem install mysql | # gem install mysql | ||
+ | |||
+ | atau | ||
+ | |||
+ | # gem install mysql --include-dependencies | ||
+ | |||
+ | |||
+ | Tampaknya agak rewel waktu install "gem install mysql" jika kita menginstall ruby menggunakan apt-get. | ||
+ | Jika kita menginstall ruby dengan cara mengcompile, kemungkinan besar akan berhasil | ||
+ | dalam menjalankan "gem install mysql". | ||
Line 13: | Line 66: | ||
Copy Source Code OpenSER Administrator ke Folder | Copy Source Code OpenSER Administrator ke Folder | ||
+ | # mkdir /var/www | ||
# cp openseradmin-0.3.tar.bz2 /var/www/ | # cp openseradmin-0.3.tar.bz2 /var/www/ | ||
# cd /var/www | # cd /var/www | ||
Line 27: | Line 81: | ||
mysql> GRANT ALL ON openser.* TO 'openser'@'localhost' IDENTIFIED BY 'openserrw'; | mysql> GRANT ALL ON openser.* TO 'openser'@'localhost' IDENTIFIED BY 'openserrw'; | ||
mysql> GRANT ALL ON openser.* TO 'openser' IDENTIFIED BY 'openserrw'; | mysql> GRANT ALL ON openser.* TO 'openser' IDENTIFIED BY 'openserrw'; | ||
+ | mysql> use openser; | ||
mysql> SOURCE /var/www/openseradmin-0.3/db/database_tables.sql; | mysql> SOURCE /var/www/openseradmin-0.3/db/database_tables.sql; | ||
mysql> EXIT | mysql> EXIT | ||
Line 55: | Line 110: | ||
password: openserrw | password: openserrw | ||
host: localhost | host: localhost | ||
+ | |||
+ | Edit | ||
+ | |||
+ | # vi /var/www/openseradmin-0.3/config/boot.rb | ||
+ | |||
+ | Ubah | ||
+ | |||
+ | require_gem "rails" | ||
+ | |||
+ | Menjadi | ||
+ | |||
+ | gem "rails" | ||
+ | |||
Ubah owner | Ubah owner | ||
Line 69: | Line 137: | ||
Default username:password openser:openserrw | Default username:password openser:openserrw | ||
+ | |||
+ | |||
+ | |||
+ | ==Pranala Menarik== | ||
+ | |||
+ | * [[Instalasi openser]] | ||
+ | * [[OpenSER Softswitch]] | ||
+ | * [[VoIP]] |
Latest revision as of 08:17, 11 March 2008
OpenSER administrator adalah alternatif tool untuk konfigurasi OpenSER. Saat ini masih belum stabil.
Install Ruby
# apt-get install ruby libruby1.8-extras
Instalasi Dukungan Ruby untuk MySQL
# apt-get install rubygems
Alternatif lain, compile ruby & rubygems tampaknya ini lebih baik. Download Ruby & RubyGems dari
http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6.tar.gz http://rubyforge.org/frs/download.php/29548/rubygems-1.0.1.tgz
Lakukan langkah berikut untuk mengcompile ruby
# apt-get install kernel-package libncurses5-dev fakeroot wget bzip2 g++ libssl-dev
# cp ruby-1.8.6.tar.gz /usr/local/src/ # cd /usr/local/src/ # tar zxvf ruby-1.8.6.tar.gz # cd /usr/local/src/ruby-1.8.6 # ./configure # make # make install
Lakukan untuk menginstall rubygems
# rubygems-1.0.1.tgz /usr/local/src/ # tar zxvf rubygems-1.0.1.tgz # cd /usr/local/src/rubygems-1.0.1 # ruby setup.rb
Install Ruby on Rails & dukungan untuk MySQL
# gem install rails --include-dependencies
Alternatif lain dalam menginstall rails. Ambil file rails-2.0.2.zip dari http://rubyforge.org/frs/?group_id=307
# cp rails-2.0.2.zip /usr/local/src # unzip rails-2.0.2.zip
Tampaknya alternatif untuk menginstall rails tidak terlalu di perlukan. Menggunakan gem install rails cukup baik.
Instalasi dukungan MySQL
# apt-get install mysql-server libmysqlclient15-dev # gem install mysql
atau
# gem install mysql --include-dependencies
Tampaknya agak rewel waktu install "gem install mysql" jika kita menginstall ruby menggunakan apt-get.
Jika kita menginstall ruby dengan cara mengcompile, kemungkinan besar akan berhasil
dalam menjalankan "gem install mysql".
Ambil Source Code OpenSER Administrator dari Source Forge www.sf.net, tepatnya di URL http://sourceforge.net/project/showfiles.php?group_id=172510
Copy Source Code OpenSER Administrator ke Folder
# mkdir /var/www # cp openseradmin-0.3.tar.bz2 /var/www/ # cd /var/www # tar jxvf openseradmin-0.3.tar.bz2
Edit MySQL
# mysql -u root -p password:
Masukan perintah
mysql> create database openser; mysql> GRANT ALL ON openser.* TO 'openser'@'localhost' IDENTIFIED BY 'openserrw'; mysql> GRANT ALL ON openser.* TO 'openser' IDENTIFIED BY 'openserrw'; mysql> use openser; mysql> SOURCE /var/www/openseradmin-0.3/db/database_tables.sql; mysql> EXIT
Buat static link utk folder public-example
# cd /var/www/openseradmin-0.3 # ln -s public-example public
Edit konfigurasi
# cp config/database.example config/database.yml
pastikan isi config/database.yml
development: adapter: mysql database: openser username: openser password: openserrw host: localhost
production: adapter: mysql database: openser username: openser password: openserrw host: localhost
Edit
# vi /var/www/openseradmin-0.3/config/boot.rb
Ubah
require_gem "rails"
Menjadi
gem "rails"
Ubah owner
# chown -Rf www-data.www-data /var/www/openseradmin-0.3
Jalankan Server
# /var/www/openseradmin-0.3/script/server
Coba akses ke
http://localhost:3000
Default username:password openser:openserrw