Difference between revisions of "Instalasi OpenSER administrator"

From OnnoWiki
Jump to navigation Jump to search
Line 1: Line 1:
 
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 libruby1.8-extras
+
  # apt-get install rubygems
 +
# gem install rails --include-dependencies
 
  # gem install mysql
 
  # gem install mysql
  

Revision as of 15:22, 10 March 2008

Install Ruby

# apt-get install ruby libruby1.8-extras

Instalasi Dukungan Ruby untuk MySQL

# apt-get install rubygems
# gem install rails --include-dependencies
# gem install mysql


Tampaknya agak rewel waktu install "gem install mysql" kemungkinan gagal tinggi disini.

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

# 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> connect 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

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