集群服务器管理系统/域名主机控制面板DTC安装方法

DTC是一套既适合单机安装也适合集群环境使用的ISP服务器管理系统

安装前准备

Apache必须已经安装好了,PHP4(cgi 命令行版本 php4-cgi debian/php-cli 在BSD)和mod_php4 模块 mysql

如果你是在安装DTC之后 再安装的邮件服务器,你必须 重新启动 intall脚本(/var/lib/dpkg/info/dtc.postinst debian, dtc-install.sh BSD)

.....

在BSD或者Debian系统中,这些 包的依赖管理会自动处理上面的事情。但是因为你可能选择其他的MTA(QMail/Postfix以及Courier/Devecot/QMail),你将安装他们,DTC会自己检查,在安装过程修改它的配置文件

配置服务

在所有的系统中,DTC 安装脚本会问几个非常关键的问题,你必须准备好回答以下几个问题:
- MySQL database hostname
- MySQL root login
- MySQL root password
- A domain name you will use to bind DTC's interface
- The public IP address of the server
- The path were files will be saved for the domains (mail,html) when creating a new account.
- The root admin login/pass you will use with DTC
- etc...

Debian安装

debian源

deb ftp://ftp.gplhost.com/debian stable main

安装

apt-get install dtc

CVS安装

CVS

# Login and checkout dtc from CVS
cvs -d :pserver:anonymous@gplhost.com:/var/lib/cvs login # (password is anoncvs)
cvs -d :pserver:anonymous@gplhost.com:/var/lib/cvs checkout dtc
cvs logout
# Make DTC binary debian packages
cd dtc/bin
./makeDebian
# You can make other packages as well:
./makeBSD && ./makeRedHat

手动安装

首先下载安装文件
ftp://ftp.gplhost.com/pub/dtc/generic/

解压缩:

tar -xvzf dtc_VERSION_all.tar.gz

安装已经解开的文件:

mkdir -p /usr/share/dtc/etc/zones
mv dtc_VERSION_all/dtc /usr/share
chown -R root:root /usr/share/dtc
chown -R nobody:nogroup /usr/share/dtc/etc

启动安装脚本:

dtc_VERSION_all/install.sh

The usual questions will be asked to you plus the path of the folowing
config file that DTC install need to modify: httpd.conf, proftpd.conf, named.conf.



验证你的qmail安装,是否类似于下面的设置:

qmaild:x:64011:65534:qmail daemon,,,:/var/qmail:/bin/sh
qmaill:x:64015:65534:qmail log,,,:/var/qmail:/bin/sh
qmailp:x:64016:65534:qmail pw,,,:/var/qmail:/bin/sh

如果你完全不使用安装脚本,全部手动安装,你必须按照下面的步骤:

- 首先, 安装 apache, bind, proftpd 带 mysql 支持, qmail 带 mysql 支持
或者用 Jedi's checklocalpasswd 程序做认证.
已经安装好了 ? 你可真快啊,莫非你用的是 debian 系统 !

-用 "create_table.sql" 安装数据库. 你也已剪切复制这个文件的内容到phpMyAdmin来完成这个操作....

- 为dtc建立一些目录来保存生成的文件 :

# Create /etc/dtc (conf file), /etc/dtc/data (generated file path)
# and /etc/dtc/data/zone (where named zone files will be stored)
# Folder where dtc will generate it's files for apache, qmail and bind :
mkdir -p /etc/dtc/data/zone


- 让这些目录可以被你的web用户访问(它应该是nobody 或者 www-data,依赖于你的系统安装...).
chown -R nobody:nogroup /etc/dtc/data;


- DTC将在/etc/dtc/data 目录生成下面的文件. 你必须 通过指向那些文件的符号链接来替换包文件,
 或者包含这些文件到包文件.让我们一个一个来看他们. 注意:你能在config.inc.php改变他们的路径.

DTC将你生成下面的文件 : named.zones -
named_slave.zones - vhosts.prosites - rcpthosts - virtualdomains -
assign - poppasswd



* named.zones 或者 named_slave.zones

Include this file in your named.conf (located in /etc/bind under
debian and /etc/namedb under FreeBSD) file using the following syntax :

include "/etc/dtc/data/named.zones";


* vhosts.conf


Include this in your /etc/apache/httpd.conf :

Include /etc/dtc/data/vhosts.prosites


* qmail files

You have to replace the qmail files by symlinks to those files :
rm /etc/qmail/rcpthosts;
ln -s /etc/qmail/rcpthosts /etc/dtc/data/rcpthosts;
rm /etc/qmail/virtualdomains;
ln -s /etc/qmail/virtualdomains /etc/dtc/data/virtualdomains;
rm /etc/qmail/users/assign;
ln -s /etc/qmail/users/assign /etc/dtc/data/assign


If you use the Jedi's checklocalpasswd :
rm /etc/poppasswd; ln -s /etc/poppasswd /etc/dtc/data/poppasswd;


- You have to add the following directives in /etc/proftpd.conf to enable
sql control :
# Beware that one is deprecated in newer version of proftpd:
# UseReverseDNS off

IdentLookups off
# This is specific to mod_sql for proftpd
SQLAuthenticate on
SQLConnectInfo YOURDATABASENAME@localhost YOURSQLUSER YOURSQLPASS
SQLUserInfo ftp_access login password uid gid homedir shell
SQLAuthTypes Plaintext

you can also add the following if you need quota support :
Quotas on
DefaultQuota 50
QuotaType hard
QuotaCalc on
QuotaBlockName Mbites
QuotaBlockSize 1024000
User nobody
Group nogroup
SQLHomedirOnDemand on

You can also add some directives to have FTP accouting done, like the install
script does...

- Next, you have to put all the dtc php file somewhere in your apache tree so you can
browse, click, and enjoy dtc.

作者:Johnny   更新日期:2005-11-15
来源:upsdn.net   浏览次数:

相关文章

相关评论   发表评论