2017年DirectAdmin安装全过程(正版)

  • 2017-09-24
  • 149

DirectAdmin 是一套国外开发的功能非常强劲的虚拟主机在线管理系统,通过这个管理系统您可以方便的管理您的服务器,设置EMAIL、设置DNS、开通FTP、在线文件管理、数据库管理等,方便管理员、客户及代理商在线操作虚拟主机信息。黛米云大部分虚拟主机均为DirectAdmin面板。

下载官方脚本执行安装

wget http://www.directadmin.com/setup.sh
chmod 755 setup.sh
./setup.sh

提示是否需要执行脚本预安装必须的第三方软件包 输入y

*****************************************************
*
* DirectAdmin requires certain packages, described here:
*   http://help.directadmin.com/item.php?id=354
*
* Would you like to install these required pre-install packages? (y/n): y

安装完毕第三方的包以后 会要求输入用户ID 授权ID 主机名 选择网卡


Complete!
******************************************************

Please enter your Client ID : 520
Please enter your License ID : 520
Please enter your hostname (server.domain.com)
It must be a Fully Qualified Domain Name
Do *not* use a domain you plan on using for the hostname:
eg. don't use domain.com. Use server.domain.com instead.
Do not enter http:// or www

Enter your hostname (FQDN) : laxhosting.daimiyun.com
Client ID:  5201314     
License ID: 5231314
Hostname: laxhosting.daimiyun.com
Is this correct? (y,n) : y
The following ethernet devices/IPs were found. Please enter the name of the device you wish to use:

gretap0       
gre0       
ip6tnl0       
venet0       127.0.0.1
venet0:0       192.184.95.151

Enter the device name: venet0:0
Your external IP:  192.184.95.151
The external IP should typically match your license IP.

Is 192.x.x.x the IP in your license? (y,n) : y

DirectAdmin will now be installed on: Enterprise 6.6
Is this correct? (must match license) (y,n) : y

Client IDLicense ID 请参见授权信息里面.

Hostname 主机名 必须是一个能解析访问有效的二级域名.

Enter the device name 网卡设备: OpenVZ一般是 venet0 或者 venet0:0,XEN KVM 独立服务器 的网卡是eth0或者eth1 ,具体看网卡设备后面是否是本机使用的IP

确认设备 以后 会提示 IP和操作系统是否正确 选择 y

接下来是选择自定义安装的版本 目前建议使用custombuild 2.0 , 需要php5.2的请选择 custombuild 1.2 ,

本教程使用 custombuild 2.0 选择 1

You now have 4 options for your apache/php setup.

1: custombuild 2.0       Apache 2.4, mod_ruid2, php 5.5. Can be set to use mod_php, php-FPM or fastcgi.
2: custombuild 1.1:      end-of-life software.  Apache 2.x, php 4, 5, or both in cli and/or suphp. Defaults to php 5.2
3: custombuild 1.2:      Production version: Apache 2.x, php 5 in cli or suphp. Defaults to php 5.3
4: custombuild 2.0 BETA: Apache 2.4, php-fpm, php 5.6. Can be set to use mod_ruid2, mod_php, php-FPM or fastcgi.

      Post any issues with custombuild to the forum: http://forum.directadmin.com/forumdisplay.php?f=61

Enter your choice (1, 2, 3 or 4): 1

Would you like the default settings of apache 2.4 with mod_ruid2 and php 5.5 cli? (y/n): n

提示选择默认的版本 这里我们选择 n 因为 cli 版本没有隔离用户和站点 我们需要在下面选择

Would you like to backup the current options.conf? (yes/no): yes
Backup created: /usr/local/directadmin/custombuild/options.conf.20151105102436.backup

选择 WEB 服务程%8

感谢打赏!
微信
支付宝