Installing OpenVZ Web Panel 2.0 on Slackware

One of my colleagues (Ekrava) showed me this web panel and I couldn’t resist to install it on my servers. :)
Tested on Slackware64-13.1 & Slackware64-13.37


So, let’s get started!

First of all we need to install SQLite

installpkg sqlite

Web panel supports only ruby 1.8.5+ (with ruby 1.9.x subj wouldn’t work), so we need to remove ruby, if we are using Slackware(64)-13.1 and higher:

slackpkg remove ruby

Installing ruby 1.8.7 (from Slackware64-13.0):

installpkg ruby-1.8.7_p174-x86_64-1.txz

Ruby gems:

tar -xzvf rubygems-1.8.7.tgz
cd rubygems-1.8.7
ruby setup.rb

Install necessary gems:

gem install sqlite3-ruby net-ssh net-sftp rails

Download and unpack panel into /opt directory:

tar -xzvf ovz-web-panel-2.0.tgz -C /opt

Startup script manipulations:

cp /opt/ovz-web-panel/script/owp /etc/rc.d/rc.owp
chmod +x /etc/rc.d/rc.owp

Manipulations with configs:

cp /opt/ovz-web-panel/config/owp.conf.sample /opt/ovz-web-panel/config/owp.conf
cp /opt/ovz-web-panel/utils/hw-daemon/hw-daemon.ini.sample /opt/ovz-web-panel/utils/hw-daemon/hw-daemon.ini
sed -i "s/key = secret/key = `head -c 200 \/dev\/urandom | md5sum | cut -f1 -d" "`/g" /opt/ovz-web-panel/utils/hw-daemon/hw-daemon.ini


# OpenVZ web panel
if [ -x /etc/rc.d/rc.owp ]; then
    /bin/bash /etc/rc.d/rc.owp start


# OpenVZ web panel
if [ -x /etc/rc.d/rc.owp ]; then
    /bin/bash /etc/rc.d/rc.owp stop

Fire up!

/etc/rc.d/rc.owp start

Log into panel at http://<your_host>:3000
Deafult user/password: admin/admin.

This article uses some parts of InstallationAltLinux wiki page.

UPD (2011.08.15): This howto is also available at project’s wiki:

Leave a Reply

Ваша пошт@ не публікуватиметься. Обов’язкові поля позначені *

− 1 = six

Можна використовувати XHTML теґи та атрибути: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>