简介
恰巧自己之前收了一个vpsmao的正版DirectAdmin
于是就用这个DA来做站了
下面给出DA的安装步骤
依赖文件的的话可以预先安装 也可以等提示自动安装
个人建议等提示自动安装
步骤
1 从DA官网下载脚本并运行
1 |
wget http://www.directadmin.com/setup.sh && chmod 777 setup.sh && bash setup.sh |
2 提示是否需要执行脚本预安装必须的第三方软件包 输入 y
1 2 3 4 5 6 |
***************************************************** * * 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 |
3 输入用户ID 授权ID 主机名 选择网卡
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
***************************************************** Please enter your Client ID : 11 Please enter your License ID : 1 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 Your current hostname is: gg Enter your hostname (FQDN) : gg.org lient ID: 11 License ID: 1 Hostname: 1 Is this correct? (y,n) : y The following ethernet devices/IPs were found. Please enter the name of the device you wish to use: venet0 127.0.0.2 venet0:0 xxxxxxxxxxxx Enter the device name: vent0:0 Your external IP: xxxxxxxxxxxx The external IP should typically match your license IP. Enter the IP used in your license file : vent0:0 DirectAdmin will now be installed on: Is this correct? (must match license) (y,n) : y |
4 Client ID 和 License ID 请参见授权信息里面.
Hostname 主机名 必须是一个能解析访问有效的二级域名.
Enter the device name 网卡设备: OpenVZ一般是 venet0 或者 venet0:0,XEN KVM 独立服务器 的网卡是eth0或者eth1 ,具体看网卡设备后面是否是本机使用的IP
确认设备 以后 会提示 IP和操作系统是否正确 选择 y
提示选择默认的版本 这里我们选择 n 因为 cli 版本没有隔离用户和站点 我们需要在下面选择
1 |
Would you like to backup the current options.conf? (yes/no): yes |
5 选择 WEB 服务程序 ,一般为了兼容性我们选择 apache ,如果有别的需求,建议选择nginx_apache 这个兼容性比较好,litespeed 需要商业授权,否则是免费版,限制很多.
1 |
Please select webserver you would like to use (apache/nginx/nginx_apache/litespeed):nginx_apache |
6 选择 FTP 服务程序,一般我们选择 proftpd ,选择 pureftpd 可以,都是DA后台在控制生成ftp信息
1 |
Please select FTP server you would like to use (proftpd/pureftpd/no):proftpd |
7 接下来选择 PHP 版本。支持 php5.3~7.0,请根据自己的需求选择
PHP 运行模式,我们选择 php-fpm
是否安装第2个版本的PHP 输入 no 我们可以在安装完毕以后使用 CustomBuild 插件进行配置多版本php
1 2 3 |
Please select default PHP version you would like to use (5.3/5.4/5.5/5.6/7.0):5.3 Please select default PHP mode you would like to use (php-fpm/fastcgi/suphp/lsphp/mod_php):suphp Would you like to have a second instance of PHP installed? (yes/no): no |
8 接下来是常用组件,
一般 ionCube 和 Zend Guard Loader 是必选的,输入 yes
suhosin PHP安全修复组件 必选 yes
phpMyAdmin 必选 yes
9 其他几个组件是email的 根据需求自选
1 2 3 4 5 6 7 8 |
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):yes Please select if you would like CustomBuild to manage Exim installation (yes/no):no Please select if you would like CustomBuild to manage Dovecot installation (yes/no):no 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):no |
10 接下来 是否测试选择最快的镜像 y
1 |
Would you like to search for the fastest download mirror? (y/n): y |
11 接下来开始自动安装 MYSQL会自动安装为 5.5版本 ,后面都可以使用 CustomBuild 插件来自定义选择版本 等待15~30分钟左右就安装完毕了,安装完毕以后会提示后台登录地址和帐号密码
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
## INSTALL_COMPLETE ## ACCOUNT_INFO The following information has been set: Admin username: admin Admin password: Axxxxxx2 Admin email: admin@testda.vvv.com Server IP: 192.x.x.x Server Hostname: testda.vvv.com To login now, follow this link: http://192.x.x.x:2222 and enter your Admin username and password when prompted. You should now visit http://admin.site-helper.com and http://www.directadmin.com/newinstall.html 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: http://help.directadmin.com/item.php?id=247 |
转载自 https://newbug.top/directadmin-centos6-install-directadmin2018/
Comment