vhcs installation on debian server

facebooktwittergoogle_plusredditpinterestlinkedinmailby feather

VHCS delivers a complete hosting automation appliance by offering significant security, total-cost-of-ownership, and performance advantages over competing commercial solutions.With VHCS Pro you can configure your server and applications, create user with domains with a few point-and-click operations that take less than a minute. There is no limit to the number of resellers, users and domains that can be created.At the core of VHCS Pro are 3 easy-to-use, Web-based control panels. VHCS provides graphic user interfaces for the administrators, resellers and users.

VHCS Requirements

Apache-Webserver

Postfix – MTA

ProFTP

PHP 4.x

Perl

MySQL-Database

POP3 and IMAP Daemon (Courier)

OpenSSL or mod_ssl for SSL-Webs

BIND8 / BIND9 (DNS Server)

iptables (optional)

Install VHCS ISP Contro Panel in Debian

Preparing you system for VHCS Installation

# aptitude install ssh postfix postfix-tls proftpd proftpd-mysql \
courier-authdaemon courier-base courier-imap courier-maildrop \
courier-pop libberkeleydb-perl libcrypt-blowfish-perl libcrypt-cbc-perl \
libcrypt-passwdmd5-perl libdate-calc-perl libdate-manip-perl \
libdbd-mysql-perl libdbi-perl libio-stringy-perl libmail-sendmail-perl \
libmailtools-perl libmd5-perl libmime-base64-perl libmime-perl \
libnet-dns-perl libnet-netmask-perl libnet-perl libnet-smtp-server-perl \
libperl5.8 libsnmp-session-perl libterm-readkey-perl libtimedate-perl perl \
perl-base perl-modules bind9 diff gzip iptables libmcrypt4 php4 patch php4-mcrypt \ php4-mysql php4-pear procmail tar original-awk libterm-readpassword-perl \ libsasl2-modules libsasl2 sasl2-bin bzip2 gcc make libc6-dev mysql-client-4.1 \ mysql-server-4.1 apache2 apache2-common apache2-mpm-prefork \ libapache2-mod-php4

This will install all the required packages for VHCS.

After finishing all the installation of above packages you need to add the following source list to your /etc/apt/sources.list file

deb http://apt.scunc.org/ sarge main

or

deb http://apt.k-inet.de/ sarge main

Now you need to update your source list using the following command

#apt-get update

Installing VHCS in Debian

#apt-get install vhcs

This will start the installation process this time it will prompt for some questions we will see one by one now

First one is Welcome message you can see this in the following screen

Should i do the setup of VHCs select yes and press enter

Enter the hostname of your server and i have entered as technews select ok and press enter

Enter the ip address of your server select ok and press enter

Enter the admin email address to send VHCS logs select ok and press enter

Database Configuration Message

Choose the way you want to configure VHCS database here you need to select as automatic so that it will create DB Automatically select ok and press enter

If you want to drop database on pure you need to select yes and select ok and press enter

Enter the database username for VHCS database default one is vhcs2 i left the same and if you want to change you can change.Now you need to select ok and press enter

Enter the password for VHCS database user and select ok and press enter

Confirm the password for VHCS database user and select ok and press enter

Enter the database vftp user by default vftp will be these you leave as default one and select ok and press enter

Enter the password for the VHCS database vftp user select ok and press enter

Confirm the password for the VHCS database vftp user select ok and press enter

Enter your seconday name server i have entered test.technews.com you can enter which one is your secondary DNS select ok and press enter

Enter SASL Domain select ok and press enter

Enter the VHCS admin user name here and i have entered as admin after that select ok and press enter

Enter the password for the VHCS admin user after that select ok and press enter

Confirm the the password for the VHCS admin user after that select ok and press enter


System starts to configure packages now. When installation asks about overwriting old configs, select Yes.
Configuration file `/etc/vhcs2/crontab/backup/crontab.conf.12564′
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer’s version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a new shell to examine the situation
The default action is to keep your current version.
*** crontab.conf.12564 (Y/I/N/O/D/Z) [default=N] ?Y

Creating config file /etc/vhcs2/apache/parts/vhcs2_base.tpl with new version
Configuration file `/etc/postfix/main.cf’
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer’s version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a new shell to examine the situation
The default action is to keep your current version.
*** main.cf (Y/I/N/O/D/Z) [default=N] ?y

Configuration file `/etc/postfix/master.cf’
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer’s version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a new shell to examine the situation
The default action is to keep your current version.
*** master.cf (Y/I/N/O/D/Z) [default=N] ?y

Configuration file `/etc/courier/authdaemonrc’
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer’s version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a new shell to examine the situation
The default action is to keep your current version.
*** authdaemonrc (Y/I/N/O/D/Z) [default=N] ?y

Configuration file `/etc/proftpd.conf’
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer’s version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a new shell to examine the situation
The default action is to keep your current version.
*** proftpd.conf (Y/I/N/O/D/Z) [default=N] ?y

This will complete the installation now you need to access you VHCS using the following URL

http://your-server-ipaddress/vhcs2/ you should see the following screen

VHCS Login Screen

Now you need to enter you admin as username and password (installation time we set this password) for this user.Once you logged in to the VHCS control panel you should see the following screen.

VHCS after loggin in

If you want to know how to manage and administer VHCS check this documentation

Reconfiguring VHCS

If you want to do reconfiguring to VHCS system, just type

#dpkg-reconfigure vhcs

Uninstall VHCS

#apt-get remove vhcs

If you want to delete all files related to VHCS, type

#dpkg –purge vhcs

If you are a ubuntu user you just use sudo before apt-get installing packages.

source: http://www.debianadmin.com/vhcs-isp-control-panel-installation-with-screenshots.html

facebooktwittergoogle_plusredditpinterestlinkedinmailby feather

5 Responses to “vhcs installation on debian server

  • I’m kinda frustrated ‘coz my installation wasn’t successful. I got this error on the very last part of the installation. Seems like I’ll reinstall and try it again. :(

    Setting up vhcs (2.4.7.1-2) …
    If specified by -literal_key, then the key length must be equal to the chosen cipher’s key length of 56 bytes at /var/lib/dpkg/info/vhcs.postinst line 1887
    dpkg: error processing vhcs (–configure):
    subprocess post-installation script returned error exit status 2
    dpkg: dependency problems prevent configuration of vhcs-daemon:
    vhcs-daemon depends on vhcs (= 2.4.7.1-2); however:
    Package vhcs is not configured yet.
    dpkg: error processing vhcs-daemon (–configure):
    dependency problems – leaving unconfigured
    dpkg: dependency problems prevent configuration of vhcs-gui:
    vhcs-gui depends on vhcs (= 2.4.7.1-2); however:
    Package vhcs is not configured yet.
    dpkg: error processing vhcs-gui (–configure):
    dependency problems – leaving unconfigured
    Errors were encountered while processing:
    vhcs
    vhcs-daemon
    vhcs-gui
    E: Sub-process /usr/bin/dpkg returned an error code (1)

  • I read from one post to modify this file /var/lib/dpkg/info/vhcs.postinst the one listed on the error message and look for the line number that error existed and for this line
    `key`=>$main::db_pass_key, then add keysize => 56 before that but it didn’t solve my prob. I got another reference telling to modify this /var/www/vhcs2/engine/vhcs2_common_code.pl and same look for `key`=>$main::db_pass_key, then add keysize => 56 but it agan it didn’t work.

    So I went back to the previous file (/var/lib/dpkg/info/vhcs.postinst) where the error existed and browse the contents of it luckily I landed here where the value of $klen was and changed it from 32 to 56. saved it and it solved my problem :)

    ## init cypher ##
    sub init_cypher {
    my $klen = 56;
    my $ivlen = 8;

    :)

  • After solving that issue I encountered 2 errors related to mysql. The first one was access denied for the mysql user I created during the installation of vhcs. So I added that user and set a password for it on phpmyadmin and modified this file etc/vhcs2/vhcs2.conf and set the password according to the one I set on phpmyadmin. It was solved.

    Next was:

    Can’t connect on ‘DBI:mysql:;localhost’ :Access denied for user ‘debian-sys-maint’@’localhost’ (using password: YES)
    W: connection to MySQL failed, make sure your MySQL server is running.

    I really have a hard time with this error. I checked phpmyadmin and set the password and grant all options but still not fixed. I don’t know what file contains the setting for that user on vhcs. Luckily I bumped into some forum and found out about this file etc/mysql/debian.cnf so opened that and copied the password set for debian-sys-maint in phpmyadmin. Problem solved! :)

    After solving all the issues the next step is here.

    But I’m not yet done with this new server configuration hehehe. Because I still need to create ftp users and domain, etc…

  • Wow! This is really great! It helps me alot on my installation of vhcs. Thanks!!!

  • i finish my istallation and when i put to my explorer
    my ip with /vhcs2
    i see to my screen only this Index of /vhcs2
    and some directory

    what’s going wrong?

Leave a Reply