最新消息:

Centos6安装DirectAdmin 2020年测试成功

vps koic_zhzz 211浏览 0评论

一.介绍

DA是一款好面板,除了丑了点……好吧,不是一点,不过DA官方正在做新皮肤,看截图挺期待的,不过还是希望更加好用,不要像某NameCheap一样,把丑的界面改成了好看然而难用的一逼的界面

How to Install and Customise the Evolution Theme in DirectAdmin | VPSBasics

希望能在寒假结束之前出beta版本,别问我现在的界面是咋样的……辣眼睛,对比来说CPanel或者说WHM就好看多了,不过那个就有点贵了,我DA买了终身授权也就三百多,换成CP的话就够三个月费用。

好吧,瞎扯扯完了,开始进入正式环节。

二.安装

①.前置准备

这儿有四步,首先建议移除系统模板可能自带的mysql apache和php,防止某些奇怪的问题

然后升级下包

接着建议关闭selinux,这货是真的不好用,除非你是专业人士

setenforce 0
sed -i 's/^SELINUX=.*$/SELINUX=disabled/' /etc/selinux/config

然后可以校对下系统时间,注意openvz无此权限,另外部分机房可能ban了ntp,防止被用来助力DDOS

yum install ntpdate
ntpdate pool.ntp.org
hwclock --systohc
rm -rf /etc/localtime
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

②然后就是正式安装了

安装建议在screen下进行,以防意外的断开ssh然后boom

yum install screen
screen -S dainst
wget 
chmod 755 setup.sh
./setup.sh

上面可能报错:

-bash: wget: command not found报错解决

在脚本开始会有个询问你是否需要安装第三方依赖包的,我们当然选y

Would you like to install these required pre-install packages? (y/n): y

然后是一系列选项

Please enter your Client ID : 123
Please enter your License ID : 123
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) : zhujifan.com
Client ID: 123
License ID: 123
Hostname: zhujifan.com
Is this correct? (y,n) : y

Enter the device name: eth0
Your external IP: 1.1.1.1
The external IP should typically match your license IP.

Is 1.1.1.1 the IP in your license? (y,n) : y

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

最开始的填你DA授权的两个ID,然后是让你填主机名,记得千万要是二级域名,这个域名你可以解析,也可以不解析,只是如果要拿来作为商用的话建议还是解析下,不然很多地方显示地址比如登陆信息之类的都会无法访问,当然个人的话你可以自己用ip访问甚至是本地改下hosts。接下来脚本会读取你的网卡设备,如果多个的话会让你选择,请务必选择外网的网卡,如果是NAT比如VPC啥的那就选映射到外网的那个网卡,当然,这样可能会有个问题,官方的建议解决方法是绑外网IP到那个网卡上,作为读取之用。下面的两个确认就不多说了。

然后脚本会给出四个版本的CustomBuild让你选择,我们一般选第四个,因为最新,提供了php7啥的,棒棒哒。

Would you like the default settings of apache 2.4 with mod_ruid2 and php 5.5 cli? (y/n): n
Would you like to backup the current options.conf? (yes/no): yes
Backup created: /usr/local/directadmin/custombuild/options.conf.xxxx.backup
Please select webserver you would like to use (apache/nginx/nginx_apache/litespeed):nginx_apache
Please select FTP server you would like to use (proftpd/pureftpd/no):proftpd
Please select default PHP version you would like to use (5.3/5.4/5.5/5.6/7.0):5.6
Please select default PHP mode you would like to use (php-fpm/fastcgi/suphp/lsphp/mod_php):php-fpm
Would you like to have a second instance of PHP installed? (yes/no): yes
Please select the second PHP version you would like to use (5.3/5.4/5.5/5.6/7.0):7.0
Please select if you would like to use ionCube (yes/no):yes
Please select if you would like to use Zend Guard Loader (yes/no):yes
Please select if you would like to use suhosin (yes/no):no
Please select if you would like CustomBuild to manage Exim installation (yes/no):yes
Please select if you would like CustomBuild to manage Dovecot installation (yes/no):yes
Please select if you would like CustomBuild to manage phpMyAdmin installation (yes/no):yes
Please select if you would like CustomBuild to manage SquirrelMail installation (yes/no):no
Please select if you would like CustomBuild to manage RoundCube installation (yes/no):yes

这儿就是一堆组件选项了,首先第一个当然是要n,不然就没有下面的自定义了,然后备份下当前配置,web服务器模式我建议选择nginx_apache,兼容性与性能都棒,当然你的配置也得稍微高点啦,ftp的话随意,proftpd貌似功能多点,然而我一直都是sftp……php的话我们装两个版本,一个5.6一个7.0,兼顾适应性与性能,模式的话我偏向于php-fpm,看你喜好吧,不过php7貌似只能这个。千万记得别装suhosin,不然以后容易蛋疼,这是经验之谈。至于邮件组件的话就看你需求了,PMA这个还是要的嘛,用起来方便。

好了,这儿就是问你要不要测最快的下载源了,测下比较好,测完会自动安装。

Would you like to search for the fastest download mirror? (y/n): y

## INSTALL_COMPLETE
## ACCOUNT_INFO
The following information has been set:

Admin username: admin
Admin password: abcdefg
Admin email: admin@da.senra.me

Server IP: 1.1.1.1
Server Hostname: da.senra.me

To login now, follow this link:



and enter your Admin username and password when prompted.

You should now visit  and  to learn how to get started.

Thank you for using DirectAdmin. Should you have any questions, don't hesitate to contact us at support@directadmin.com

## REPORT_END
Permissions set

System Security Tips:

安装完成之后的输出基本是这样的,然后你就可以登录了。后面我会说下DA的配置以及优化等等

转载请注明:落伍老站长 » Centos6安装DirectAdmin 2020年测试成功

发表我的评论
取消评论
表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址