Difference between revisions of "Instalasi OpenSER administrator"
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 33: | Line 33: | ||
# gem install rails --include-dependencies | # gem install rails --include-dependencies | ||
+ | |||
+ | Alternatif lain dalam menginstall rails. Ambil file rails-2.0.2.zip dari | ||
+ | http://rubyforge.org/frs/?group_id=307 | ||
+ | |||
+ | |||
+ | |||
+ | |||
# gem install mysql | # gem install mysql | ||
Revision as of 16:22, 10 March 2008
Install Ruby
# apt-get install ruby libruby1.8-extras
Instalasi Dukungan Ruby untuk MySQL
# apt-get install rubygems
Alternatif lain, download Ruby & RubyGems dari
http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6.tar.gz http://rubyforge.org/frs/download.php/29548/rubygems-1.0.1.tgz
Lakukan untuk mengcompile ruby
# cp ruby-1.8.6.tar.gz /usr/local/src/ # cd /usr/local/src/ # tar zxvf ruby-1.8.6.tar.gz # cd /usr/local/src/ruby-1.8.6 # ./configure # make # make install
Lakukan untuk menginstall rubygems
# rubygems-1.0.1.tgz /usr/local/src/ # tar zxvf rubygems-1.0.1.tgz # cd /usr/local/src/rubygems-1.0.1 # ruby setup.rb
Install Ruby on Rails & dukungan untuk MySQL
# gem install rails --include-dependencies
Alternatif lain dalam menginstall rails. Ambil file rails-2.0.2.zip dari http://rubyforge.org/frs/?group_id=307
# gem install mysql
Tampaknya agak rewel waktu install "gem install mysql" jika kita menginstall ruby menggunakan apt-get. Jika kita menginstall ruby dengan cara mengcompile, kemungkinan besar akan berhasil dalam menjalankan "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> use 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