Install vhcs2.4.6 under DebianSarge

Source: Internet
Author: User
Install vhcs2.4.6 -- Debian for Linux release under Debian. For more information, see below. Vhcs (virtual hosting control system) is a virtual host control platform developed by a German company. Features of vhcs:
1. Support for Linux and Freebsd (Freebsd is supported in the latest version 2.4.6 and is not yet complete ).
2. Follow gnu gpl, open-source and free, and get Community technical support in their forums.
3. Stable and easy to use, supporting multiple languages (I provide the development team with simplified Chinese language packs ).

Vhcs supports multiple linux releases, but Debian is its best partner. Its development and testing platform is based on Debian Sarge. The following describes the installation steps under Debian Sarge.

Before you start, make sure that you are using Debian Sarge, the network is normal, and you have a static IP address.
1. Update Debian Sarge.
Apt-get update; apt-get upgrade

2. install necessary software.
Apt-get install ssh postfix proftpd-mysql courier-authdaemon courier-base \
Courier-imap courier-maildrop courier-pop \
Perl-modules bind9 diff gzip iptables libmcrypt4 mysql-client \
Mysql-common mysql-server patch php4 php4-mcrypt php4-mysql \
Libsasl2-modules libsasl2 sasl2-bin apache2 apache2-common bzip2 \
Libcrypt-blowfish-perl libcrypt-cbc-perl original-awk libterm-readpassword-perl \
Libmime-perl libnet-dns-perl libnet-netmask-perl libnet-perl \
Php4-pear procmail tar original-awk libapache2-mod-php4
3. Download and compile vhcs
Wget http://ovh.dl.sourceforge.net/so... vhcs2.4.6.2.tar.bz2
Tar jxf vhcs2.4.6.2.tar.bz2
Cd vhcs2.4.6.2
Make install
Cd/tmp/vhcs2/
Cp-R etc/
Cp-R usr/
Cp-R var/
Chmod-R 777/var/www/vhcs2/gui/tools/webmail/database/

4. Modify the mysql root Password

Mysql-u root-p

Use mysql
Update user set password = password ("new_pass") where user = "root ";
Flush privileges;

5. Install vhcs 2.4.6.2
Cd/var/www/vhcs2/engine/setup
/Vhcs2-setup
Then, I will ask some questions. Most of the questions can be answered directly by pressing enter, and others can be answered as prompted on the screen. The following content is returned:
Wlecome to VHCS2 '2. 4 Spartacus' Setup Dialog.
This program will set up VHCS2 system on your server.
Please press 'enter' to continue.
Please enter system hostname (Enter for defaults) [Zone853]:
Please enter system network address (Enter for defaults) [192.168.0.128]:
Please enter SQL server host (Enter for defaults) [localhost]:
Please enter system SQL database (Enter for defaults) [vhcs2]:
Please enter system SQL user (Enter for defaults) [root]:
Please enter system SQL password (Enter for defaults) [none]:
Please enter VHCS ftp SQL user (Enter for defaults) [vftp]:
Please enter VHCS ftp SQL user password (Enter for defaults) [none]:
Please enter administrator login name (Enter for defaults) [admin]:
Please enter administrator password:
Please repeat administrator password:
Please enter admininistrator email address: admin@admin.com
Congratulations!
VHCS2 '2. 4 Spartacus' Setup completed successfully!
Please type http: // 192.168.0.128/vhcs2/in your
Browser!

6. modify the configuration of mysql and apache to suit the needs of virtual hosts.

/Etc/mysql/my. cnf
Search for skip-external-locking and add a row below:
Max_connections = 2000

/Etc/apache2/apache2.conf
Search for MaxKeepAliveRequests and change it
MaxKeepAliveRequests 1000, which is added below:
ServerLimit 5000
You can see below:

StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 20
MaxRequestsPerChild 0

Modify as follows (the size of maxclients depends on the performance of your server, mainly depends on the ram size. Generally, 300 MB can be changed,
Change 1g to 700, and 2g to 1200 ):

StartServers 10
MinSpareServers 10
MaxSpareServers 15
MaxClients 1000
MaxRequestsPerChild 50000

Modify/etc/apache2/httpd. conf. Add it to the backend (Zone86 is the name of the server you just wrote. You can change it to any name you like. If this parameter is not set, a warning will be given when apache is started)
ServerName Zone86

Run:
Ln-s/etc/apache2/sites-available/vhcs2.conf/etc/apache2/sites-enabled/
/Etc/init. d/apache2 restart
/Etc/init. d/mysql restart

Now, all the work is done. Open the browser, enter http: // server IP Address/vhcs2/, and enter the Administrator account and password to log on to the management system.
There are also some other settings to be modified. Please try again when I have time.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.