歌天互联网菜鸟笔记歌天互联网菜鸟笔记

互联网菜鸟 - 歌天
专注服务器+网络营销,只发布亲自测试过的技术,只提供有价值的营销服务!
文章20浏览497本站已运行1022

Directadmin安装教程(2017最新版DA面板安装教程)

挺久没上服务器了,近期Bt宝塔面板比较好用,更新也勤,所以就一直用宝塔了。今天上的新机器,顾客指定要求用Directadmin的DA面板。想想也好久没有安装了,新版可能有所不一样,就顺道截图,做个Directadmin面板安装(2017最新版)。因为本人菜鸟,以前装DA面板的时候经常遇见问题。在此做个记录,也与互联网菜鸟共同成长。其实DA的安装过程还是蛮简单的,建议大家安装的时候,还是选择自定义安全,节约时间,也不会在后期出现太多问题的。

directadmin.png

第一步、准备

1、建议凌晨网络较好时安装,速度较快。毕竟从美帝下载文件过来的,歌天自我感觉凌晨会快一些。

2、安装前把dns改成8.8.8.8或是8.8.4.4,因为安装过程中会从国外镜像下载文件。

3、自定义安装时,建议选择稳定版,支持目前大多数程序,特别是医疗网站最通用的dedecms和帝国cms,也支持shopex和ecshop的zend功能。偿鲜版经常出现问题,我个人是出现过比较多问题

话不多说,下面开始介绍安装:

首先安装前的准备工作

1、购买Directadmin授权,购买授权时,一定要注意版本号,以及64位还是32位的,申请错误了安装是不成功的。本文是在CentOS 6.5 64bit系统环境下操作

2、纯净的系统是前提,如果已经安装过,错误了,或是安装了其它的面板,请重装一下系统。


第二步、基本组件安装

在正式安装DA之前,先执行安装screen,关闭selinux,更新系统,安装必要组件、移除HTTPD和MySQL等共五步。

yum install screen
sed -i "s/^SELINUX=.*/SELINUX=disabled/" /etc/sysconfig/selinux
yum -y update
yum install wget gcc gcc-c++ flex bison make bind bind-libs bind-utils openssl openssl-devel perl quota libaio libcom_err-devel libcurl-devel gd zlib-devel zip unzip libcap-devel cronie bzip2 db4-devel cyrus-sasl-devel perl-ExtUtils-Embed automake autoconf libgd.so.2 libdbus-1.so.3 patch
yum remove httpd php mysql


第三步、下载安装

下载安装文件,并设定755权限,再运行directadmin安装程序

wget http://www.directadmin.com/setup.sh       #下载脚本

chmod 755 setup.sh                  #设定权限

./setup.sh                              #运行安装脚本


第四步、自定义组件安装

*** 64-bit OS ***

*****************************************************
*
* Have you run the pre-install commands? CTRL-C if not.
*   http://help.directadmin.com/item.php?id=354
*
*****************************************************
Please enter your Client ID : 不许看                                         \输入DA的用户 ID
Please enter your License ID : 不许看                                         \输入DA的许可 ID
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) : ls.anjienet.com            \输入hostname,随便输入个域名
Client ID:   
License ID:  
Hostname:  
Is this correct? (y,n) : y                   \核对是否正确,正确则输入y 回车
The following ethernet devices/IPs were found. Please enter the name of the device you wish to use:

bond0
dummy0
eth0      8.8.8.8
ip6tnl0
tunl0

Enter the device name: eth0    \输入网卡设备,必须和DA授权上的IP一样的设备
Is 8.8.8.8 the IP in your license? (y,n) : y           \再次确认IP是否正确

DirectAdmin will now be installed on: Enterprise 6.9
Is this correct? (must match license) (y,n) : y             \再次确认系统是否正确

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.0正式版本,应该是目前最稳定的版本,后面列出了组件信息。
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
#较老的版本,默认PHP5.2.*
3: custombuild 1.2:      Production version: Apache 2.x, php 5 in cli or suphp. Defaults to php 5.3
#较老版本,默认PHP5.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.
#最新版本,但是是BETA版本,尝鲜可以玩

             

\从上面四个中挑选一个,我个人挑选的是1号,因为目前来说1号比较稳定 2号已经过时了

\强烈建议选择1,支持大多数目前的程序,特别是dedecms和帝国cms,以及ecshop和shopex的zend功能。

\我装过4,但是dedecms后台会出现mysql编码不正确,后台修改的信息,保存不了很麻烦的。
You have chosen custombuild 1.2.
–2013-11-26 22:08:03–  http://files.directadmin.com/services/custombuild/1.2/custombuild/build
Resolving files.directadmin.com… 69.30.193.202, 216.144.254.90
Connecting to files.directadmin.com|69.30.193.202|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 315255 (308K) [text/plain]
Saving to: “/usr/local/directadmin/custombuild/build”

100%[======================================>] 315,255     1.27M/s   in 0.2s

2013-11-26 22:08:03 (1.27 MB/s) – “/usr/local/directadmin/custombuild/build” saved [315255/315255]

Would you like the default settings of apache 2.2 and php 5.3 cli? (y/n): n   \问你要不要默认的安装CLI ,鬼才用默认的,各种麻烦搞死你
You have chosen to customize the custombuild options.  Please wait while options configurator is downloaded…

Cannot find /usr/local/directadmin/custombuild/options.conf, writing defaults.
Downloading             versions.txt…
–2013-11-26 22:08:16–  http://files.directadmin.com/services/custombuild/versions.txt
Resolving files.directadmin.com… 216.144.254.90, 69.30.193.202
Connecting to files.directadmin.com|216.144.254.90|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 7398 (7.2K) [text/plain]
Saving to: `/usr/local/directadmin/custombuild/versions.txt’

100%[======================================>] 7,398       –.-K/s   in 0.05s

2013-11-26 22:08:16 (151 KB/s) – `/usr/local/directadmin/custombuild/versions.txt’ saved [7398/7398]

Would you like to backup the current options.conf? (yes/no): yes     \问你是不是要备份配置文件,当然输入yes
Backup created: /usr/local/directadmin/custombuild/options.conf.20131126100826.backup
Would you like to have PHP5 as CLI or CGI? (cli/cgi): cgi      \问你CLI还是CGI,当然CGI运行apache 不然很麻烦
Would you like to have ionCube? (yes/no): yes                         \问你要不要装ionCube,当然要装
Would you like to have Zend Optimizer? (yes/no): yes            \问你是不是要装Zend ,当然要装。不过php5.2版本的zend无法被php5.3版本的zend解密,好痛苦
********
For new DirectAdmin installs, we don’t recommend updating MySQL until after everything is finished
We recommend using ‘no’ here to use the already included precompiled binaries.
You can still update MySQL later.

Would you like to have an ability to update/instal MySQL using CustomBuild? (yes/no): yes    \是不是要装Mysql,当然选择是
Which version of MySQL you would like to have? (5.0/5.1/5.5/5.6): 5.5                                          \mysql版本,阿福选择是5.5
Which version of Apache you would like to have? (1.3/2.0/2.2): 2.2                                                  \apache版本建议选择的是2.2
Would you like to prevent htaccess files from using Options
FollowSymLinks? More secure, but may break scripts. (yes/no): no      \取消.htaccess?哦不行!
Would you like to have an ability to update/instal Exim using CustomBuild? (yes/no): yes      \Exim发邮件用的yes
Would you like to have an ability to install Dovecot? (yes/no): yes                                                   \yes
Would you like to have an ability to install/update phpMyAdmin using CustomBuild? (yes/no): yes        \phpmyadmin yes
Would you like to have an ability to install/update SquirrelMail webmail using CustomBuild? (yes/no): yes       \邮局,装一个和不装一个样
Would you like to have an ability to install/update RoundCube webmail using CustomBuild? (yes/no): no        \余下的三个都是邮局,都no了
Would you like to have an ability to install/update UebiMiau webmail using CustomBuild? (yes/no): no
Would you like to have an ability to install/update Atmail Open webmail using CustomBuild? (yes/no): no
Would you like to search for the fastest download mirror? (y/n):y                               \最后,直接y等待安装完成了。


第五步、等待结果并测试

结束配置之后,系统会自动弹出你的管理员账号和密码,如果等不及去睡了,你只要输入如下命令

cat /usr/local/directadmin/scripts/setup.txt

就能看到你的管理员帐号和密码了。


赞一下
歌天互联网菜鸟笔记
上一篇: 返回列表
下一篇: 宝塔bt面板防止恶意解析

相关推荐

隐藏边栏