Instalasi openser

From OnnoWiki
Revision as of 09:45, 12 March 2008 by Onnowpurbo (talk | contribs)
Jump to navigation Jump to search

Untuk menginstalasi lakukan

$ sudo apt-get install openser openser-mysql-module
[sudo] password for user:

Edit file /etc/default/openser

# vi /etc/default/openser

Pastikan ada

RUN_OPENSER=yes



Edit /etc/openser/openser.cfg

# vi /etc/openser/openser.cfg

Pastikan

loadmodule "mysql.so"
loadmodule "auth.so"
loadmodule "auth_db.so"


# modparam("usrloc", "db_mode",   0)
modparam("usrloc", "db_mode", 2)
modparam("auth_db", "calculate_ha1", yes)
modparam("auth_db", "password_column", "password")
modparam("mi_fifo", "fifo_name", "/tmp/openser_fifo")


Lakukan

# touch /tmp/openser_fifo


Aktifkan openser database

# openser_mysql create
MySQL password for root: 
creating database openser ...
Core OpenSER tables succesfully created.
Install presence related tables ?(y/n):y
creating presence tables into openser ...
Presence tables succesfully created.
Install extra tables - imc,cpl,siptrace,domainpolicy ?(y/n):y
creating extra tables into openser ...
Extra tables succesfully created.
Install SERWEB related tables ?(y/n):y
Domain (realm) for the default user 'admin': 192.168.0.2.
creating serweb tables into openser ...
SERWEB tables succesfully created.

Akan keluar warning

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!                                                 !
!                  WARNING                        !
!                                                 !
! There was a default admin user created:         !
!    username: admin@192.168.0.2. 
!    password: openserrw 
!                                                 !
! Please change this password or remove this user !
! from the subscriber and admin_privileges table. !
!                                                 !
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


Biasanya bisa di ignore saja



Restart openser

# /etc/init.d/openser restart


Kadang-kadang openser suka hang & tidak jalan. Solusinya "ajaib" harus remove & install ulang, seperti di bawah ini,

# apt-get remove openser openser-mysql-module
# apt-get install openser openser-mysql-module



Pranala Menarik