1. Ö§³ÖLinux ºÍ Freebsd(Freebsd ÊÇÔÚ×îÐ嵀 2.4.6°æ±¾²ÅÖ§³ÖµÄ£¬ÉÐδÍêÉÆ)¡£
2. ×ñÑGNU GPL£¬ ¿ªÔ´²¢ÇÒÃâ·Ñ£¬ÔÚËûÃǵÄÂÛ̳Äܵõ½ÉçÇøµÄ¼¼ÊõÖ§³Ö¡£
3. Îȶ¨¶øÒ×Óã¬Ö§³Ö¶à¹úÓïÑÔ£¨ÎÒÏò¿ª·¢ÍŶÓÌṩ¼òÌåÖÐÎÄÓïÑÔ°ü£©¡£
vhcs Ö§³Ö¶àÖÖlinux·¢Ðа汾£¬µ«ÊÇDebian²ÅÊÇËüµÄ×î¼Ñ´îµµ£¬ËüµÄ¿ª·¢ºÍ²âÊÔƽ̨ÊÇ»ùÓÚDebian SargeµÄ£¬ÏÂÃæÊÇÔÚDebian Sargeϵݲװ²½Öè¡£
ÔÚ¿ªÊ¼Ö®Ç°£¬ ±£Ö¤ÄãʹÓõİ汾ÊÇDebian Sarge£¬ÍøÂçÕý³£²¢ÇÒÓµÓÐÒ»¸ö¾²Ì¬IP¡£
1. ¸üÐÂDebian Sarge¡£
apt-get update; apt-get upgrade
2. °²×°±ØÒªµÄÈí¼þ¡£
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. ÏÂÔز¢±àÒëvhcs
wget http://ovh.dl.sourceforge.net/sourceforge/vhcs/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. ÐÞ¸ÄmysqlµÄrootÃÜÂë
mysql -u root -p
use mysql
update user set password=password("new_pass") where user="root";
flush privileges;
5. °²×° vhcs 2.4.6.2
cd /var/www/vhcs2/engine/setup
./vhcs2-setup
È»ºó»áÌáÎÊһЩÎÊÌ⣬´ó²¿·ÖÖ±½Ó°´»Ø³µ¾Í¿ÉÒÔÁË£¬ÆäËûµÄ°´ÕÕÆÁÄ»Ìáʾ»Ø´ð¡£ÏÂÃæÊÇÌáÎʻص½µÄÄÚÈÝ£º
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. ÐÞ¸ÄmysqlºÍapacheµÄÅäÖÃÈÃÆäÊʺÏÐéÄâÖ÷»úµÄÐèÒª¡£
/etc/mysql/my.cnf
²éÕÒ skip-external-locking£¬ ÔÚÏÂÃæÌí¼ÓÒ»ÐУº
max_connections = 2000
/etc/apache2/apache2.conf
²éÕÒ MaxKeepAliveRequests ,½«Æä¸Ä³É
MaxKeepAliveRequests 1000£¬ Ï·½Ìí¼Ó£º
ServerLimit 5000
ÉÔÏ·½¿ÉÒÔ¿´µ½£º
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 20
MaxRequestsPerChild 0
ÐÞ¸ÄÈçÏÂ(maxclientsµÄ´óСÇë¸ù¾ÝÄãµÄ·þÎñÆ÷ÐÔÄÜÀ´¶¨£¬Ö÷Ҫȡ¾öÓÚramµÄ´óС£¬Ò»°ã512M¿ÉÒÔ¸ÄΪ300£¬
1G¸ÄΪ 700£¬ 2G¸ÄΪ 1200£©£º
StartServers 10
MinSpareServers 10
MaxSpareServers 15
MaxClients 1000
MaxRequestsPerChild 50000
ÐÞ¸Ä /etc/apache2/httpd.conf,ÔÚºóÃæ¼ÓÈ루Zone86ÊÇËæ±ãдµÄ·þÎñÆ÷Ãû×Ö£¬Äã¿ÉÒԸijÉÈκÎÄãϲ»¶µÄÃû×Ö£¬Èç¹ûûÓÐÕâ¸ö²ÎÊýapacheÆô¶¯µÄʱºò»áÓÐÒ»¸ö¾¯¸æ£©
ServerName Zone86
Ö´ÐУº
ln -s /etc/apache2/sites-available/vhcs2.conf /etc/apache2/sites-enabled/
/etc/init.d/apache2 restart
/etc/init.d/mysql restart
ºÃÁË£¬È«²¿¹¤×÷¾ÍÍê³ÉÁË£¬´ò¿ªä¯ÀÀÆ÷£¬ÊäÈë http://·þÎñÆ÷IP/vhcs2/ £¬ÊäÈë¸Õ²ÅµÄ¹ÜÀíÔ±Õ˺źÍÃÜÂë¾Í¿ÉÒԵǼµ½¹ÜÀíϵͳÀ²¡£
»¹ÓÐһЩÆäËûµÄÉèÖÃÒªÐ޸ģ¬µÈÎÒÓпÕÔÙд°É¡£