Difference between revisions of "Instalasi OpenSER administrator"

From OnnoWiki
Jump to navigation Jump to search
Line 9: Line 9:
  
  
Ambil Source Code OpenSER Administrator dari Source Forge www.sf.net
+
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
 
Copy Source Code OpenSER Administrator ke Folder

Revision as of 15:04, 10 March 2008

Install Ruby

# apt-get install ruby

Instalasi Dukungan Ruby untuk MySQL

# apt-get install rubygems
# 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

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