VHCS安装
VHCS2是一个在国际上使用多的开源虚拟主机系统
1.安装基本系统
如果有Debian使用经验 这一步很简单,参看ISPConfig中相关介绍
(http://www.upsdn.net/html/2005-11/601.html)
2.移除不必要的程序,比如打印,网络文件系统,拨号
apt-get remove -y lpr nfs-common portmap pidentd pcmcia-cs pppoe pppoeconf ppp pppconfig3.从inet.conf中移除不比需要的服务
update-rc.d -f exim remove
update-inetd --remove daytime
update-inetd --remove telnet
update-inetd --remove time
update-inetd --remove finger
update-inetd --remove talk
update-inetd --remove ntalk
update-inetd --remove ftp
update-inetd --remove discard
重新加载inetd服务 /etc/init.d/inetd reload
4.安装依赖程序
apt-get install -y ssh postfix postfix-tls 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 libmime-base64-perl libdbd-mysql-perl libdbi-perl
libio-stringy-perl libmail-sendmail-perl libmailtools-perl libmd5-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 mysql-client mysql-common mysql-server
patch php4 php4-mcrypt php4-mysql php4-pear
procmail tar original-awk libterm-readpassword-perl
libsasl2-modules libsasl2 sasl2-bin
apache2 apache2-common apache2-mpm-prefork libapache2-mod-php4 bzip2
或者用(aptitude也可以带参数的,呵呵)
aptitude install ssh postfix postfix-tls 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 mysql-client \
mysql-common mysql-server patch php4 php4-mcrypt php4-mysql \
php4-pear procmail tar original-awk libterm-readpassword-perl \
libsasl2-modules libsasl2 sasl2-bin apache2 apache2-common \
apache2-mpm-prefork libapache2-mod-php4 bzip2 gcc make libc6-dev
配置时回答
Configuring courier-base::::Create directories for web-based administration ?
NO
Postfix Configuration::::OK
Internet site,以及邮件服务主机的名字 等等
5.解压缩,编译
tar xvjf vhcs2.4.tar.bz2 cd ./vhcs-2.4 make install6.因为刚才将所有的文件生成到 /tmp/vhcs2下面了
cp -R /tmp/vhcs2/etc/* /etc
cp -R /tmp/vhcs2/var/* /var
cp -R /tmp/vhcs2/usr/* /usr
7.配置
改变MySQL的数据库管理员密码
mysqladmin -u root -p password "new password here"
然后运行配置脚本
/var/www/vhcs2/engine/setup/vhcs2-setup
会问你几个问题,如密码,IP等(推荐使用内网IP)
8.编辑apache2的配置文件,将vhcs2.conf的配置包含进去
pico /etc/apache2/httpd.conf
加到最后一行
Include /etc/apache2/sites-available/vhcs2.conf
重新启动apache
/etc/init.d/apache2 restart
9.将vhcs的服务加到启动脚本
update-rc.d vhcs2_daemon defaults update-rc.d vhcs2_network defaults10. 好了,访问 http://www.gamesaga.net/vhcs2 访问控制面板吧
另一种安装方法(适合Debian)
第5步
deb http://apt.scunc.org/ sarge main
deb http://apt.k-inet.de/ sarge main
将这两个源头加入到 /etc/apt/source.list
6.安装配置vhcs
aptitude update aptitude install vhcs
作者:Johnny 更新日期:2005-11-14
来源:upsdn.net
浏览次数: