ovz-web-panel

ovz-web-panel 安裝

以下是把 panel 及 daemon 分開來安裝方法, 好處是比較安全 !!

下載 pannel:
 http://code.google.com/p/ovz-web-panel/downloads/list
git clone git://github.com/sibprogrammer/owp.git
  apt-get install git
  會在當前目錄建立目錄 owp
 
 
VPS Server

apt-get install ruby

P.S. 要 ruby1.8.5 才可執行 hw-dasmon (ruby -v)

把 ovz-web-panel-2.0.tgz 放在 /opt, 之後解開

# 進入相關目錄
cd /opt/ovz-web-panel/utils/hw-daemon

# 建立設定檔
mv hw-daemon.ini.sample hw-daemon.ini

hw-daemon.ini
==========================
address = 127.0.0.1
port = 7767
key = ????????????
ssl = off
==========================

# 為安全
chmod 640 hw-daemon.ini

# 自動啟動

vi /etc/rc.local

# Openvz hw-daemon
/usr/bin/ruby /opt/ovz-web-panel/utils/hw-daemon/hw-daemon.rb start

===================================================

VPS 內設定

安裝:

apt-get install ruby rubygems libsqlite3-ruby

把 /opt/ovz-web-panel/script/owp 複製到 /etc/init.d/

把 /opt/ovz-web-panel/config/owp.conf 複製到 /etc
=============
......................
PORT=443
SSL=on
=============

/opt/ovz-web-panel/config/owp.conf/config.yml.sample 複製成 config.yml
 
backups:
  allow_for_users: false
 
branding:
  show_version: false    # panel's version number

hw_daemon:
  port: 7767
  timeout: 600   # timeout for XML-RPC call to hardware server daemon

updates:
  disabled: false
  period: 259200    # 秒

locale:
  single: true

vzctl:
  save_descriptions: true

 

 


 

預設登入:

admin/admin

 


 

password restart

 

ruby /opt/ovz-web-panel/script/runner -e production 'user = User.find_by_login("admin"); user.password = "admin"; user.save(false)'

 


 

自動啟動:

修改 /etc/init.d/owp

### BEGIN INIT INFO
# Provides: owp
# Required-Start: vz <-- 刪除
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: OpenVZ Web Panel startup script
# Description: OpenVZ Web Panel startup script
### END INIT INFO

 


    Panel main log file: /opt/ovz-web-panel/log/production.log
    Hardware daemon log file: /opt/ovz-web-panel/utils/hw-daemon/hw-daemon.log