Instalasi OpenSER administrator

From OnnoWiki
Revision as of 15:17, 10 March 2008 by Onnowpurbo (talk | contribs)
Jump to navigation Jump to search

Install Ruby

# apt-get install ruby

Instalasi Dukungan Ruby untuk MySQL

# apt-get install rubygems libruby1.8-extras
# 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