Difference between revisions of "Instalasi openser"

From OnnoWiki
Jump to navigation Jump to search
Line 1: Line 1:
 
Untuk menginstalasi lakukan
 
Untuk menginstalasi lakukan
  
  $ sudo apt-get install openser openser-mysql-module
+
  $ sudo apt-get install openser openser-mysql-module mysql-server
 
  [sudo] password for user:
 
  [sudo] password for user:
  

Revision as of 16:06, 8 April 2008

Untuk menginstalasi lakukan

$ sudo apt-get install openser openser-mysql-module mysql-server
[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 terutama kalau komputer di shutdown. Selama komputer masih running biasanya aman-aman saja. Solusinya "ajaib" harus remove & install ulang, seperti di bawah ini,

# apt-get remove openser openser-mysql-module
# apt-get install openser openser-mysql-module
# /etc/init.d/openser restart

Cek mengunakan apakah openser beroperasi dengan baik menggunakan

# openserctl moni



Pranala Menarik