个人工具
登录
查看“UbuntuHelp:VHCS/zh”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:VHCS/zh”的源代码
来自Ubuntu中文
←
UbuntuHelp:VHCS/zh
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/VHCS}} {{Languages|UbuntuHelp:VHCS}} 这个页面详细的说明在一台UBUNTU server的机器上安装VHCS,此帮助在新安装的ubuntu server系统中测试成功. === 预备工作 === 创建基本工作目录 <pre>mkdir -p /tmp/vhcs_tmp/install cd /tmp/vhcs_tmp/install </pre> 删除一些不必要的软件包 <pre>apt-get remove ppp pppconfig pppoeconf ubuntu-standard </pre> 从inetd关闭一些不必要的服务 <pre>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 </pre> === 软件包安装 === 先安装一些系统的基本软件包,供之后使用,下面命令写成一行: <pre>apt-get 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-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-5.0 mysql-common mysql-server-5.0 patch php5 php5-mcrypt php5-mysql php-pear procmail tar original-awk libterm-readpassword-perl libsasl2-modules libsasl2-2 sasl2-bin apache2 apache2.2-common apache2-mpm-prefork libapache2-mod-php5 bzip2 build-essential </pre> <br> [[{{ns:image}}:vhcs-1.png|软件包安装]] <br> 如果出现一些问答,可以作如下回答: <pre>"courier" - No "postfix" - defaults "proftpd" - standalone </pre> === 数据库安装 === 安装mysql的密码 <pre># mysql -u root > create database vhcs2; > use vhcs2 > grant all privileges on *.* to 'vhcs2'@'localhost' identified by 'vhcs2' with grant option; > \q </pre> === 下载并解压缩 VHCS2 === 下载 VHCS2 2.4.7.1: <pre># wget http://easynews.dl.sourceforge.net/sourceforge/vhcs/vhcs2-2.4.7.1.tar.bz2 </pre> 解压后,进入VHCS所在目录: <pre> # tar xjvf vhcs2-2.4.7.1.tar.bz2 # cd ./vhcs2-2.4.7.1 </pre> === Configuration File === Edit configs/vhcs2.conf and change the following lines: <pre>DEFAULT_ADMIN_ADDRES = your email SERVER_HOSTNAME = your hostname BASE_SERVER_IP = your ip DATABASE_TYPE = mysql DATABASE_HOST = localhost DATABASE_NAME = vhcs2 DATABASE_PASSWORD = vhcs2 DATABASE_USER = vhcs2 </pre> If you wish alter this line too: <pre>DATE_FORMAT = m.d.Y </pre> === Compile and Create VHCS Tree === Create the VHCS Tree: <pre># make install </pre> This will create the VHCS tree into the /tmp directory Copy files into correct directories: <pre># cp -R /tmp/vhcs-2.4.7.1/* / </pre> === Configuration Script === First you need to patch some problematic files. *Edit /var/www/vhcs2/engine/vhcs2_common_code.pl *Find the text <pre>`key`=>$main::db_pass_key, </pre> *Add the following line '''before'' the line above <pre>`keysize`=>32, </pre> ''There are two occurrences''' Run the configuration script: <pre># cd /var/www/vhcs2/engine/setup # ./vhcs2-setup </pre> Then interact with the script: <pre>Welcome 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) [debian]: ''yourhostname'' Please enter system network address (Enter for defaults) [192.168.0.128]: ''your ipaddress'' Please enter SQL server host (Enter for defaults) [localhost]: Please enter system SQL database (Enter for defaults) [vhcs2]: ''vhcs2'' Please enter system SQL user (Enter for defaults) [root]: ''vhcs2'' Please enter system SQL password (Enter for defaults) [none]: ''vhcs2'' Please repeat system SQL password: ''vhcs2'' Please enter VHCS ftp SQL user (Enter for defaults) [vftp]: ''vftp'' Please enter VHCS ftp SQL user password (Enter for defaults) [none]: ''vftp'' Please repeat VHCS ftp SQL user password: ''vftp'' Please enter administrator login name (Enter for defaults) [admin]: Please enter administrator password: your password Please repeat administrator password: your password Please enter admininistrator email address: ''your email address'' </pre> === Setup Automatic Scripts === First add vhcs2_daemon script to multiuser startup. <pre># cp /etc/vhcs2/init.d/vhcs* /etc/init.d # cd /etc/rc2.d # update-rc.d vhcs2_daemon multiuser 92 </pre> This will make vhcs2_daemon script run at startup right after apache === Final Fixes === Create postfix directory <pre># cp -r /etc/vhcs2/postfix/vhcs2 /etc/postfix </pre> ---- [[Category:CategoryDocumentation|UbuntuHelp:VHCS]] [[Category:CategoryCleanup|UbuntuHelp:VHCS]] [[Category:UbuntuHelp|UbuntuHelp:VHCS]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:VHCS/zh
。