注意:部分文章发布时间较长,可能存在未知因素,购买时建议在本站搜索商家名称,先充分了解商家动态。
交流:唯一投稿邮箱:hostvps@88.com。
下载官方脚本执行安装wget http://www.directadmin.com/setup.shchmod 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 主机名 选择网卡 确认系统版本***************************************************** Please enter your Client ID : 用户ID Please enter your License ID : 授权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 wwwEnter your hostname (FQDN) : 主机名 Client ID: ***** License ID: ****** Hostname: ***.** Is this correct? (y,n) : y Is eth0 your network adaptor with the license IP (**.***.**.**)? (y,n) : y Your external IP: The external IP should typically match your license IP.Is **.**.**.** the IP in your license? (y,n) : yDirectAdmin will now be installed on: Enterprise 7.2 Is this correct? (must match license) (y,n) : y提示选择默认的版本 这里我们选择 n 因为 cli 版本没有隔离用户和站点 我们需要在下面选择Would you like the default settings of apache 2.4 with mod_ruid2 and php 5.5 cli? (y/n): n提示是否备份配置文件 输入 yesWould you like to backup the current options.conf? (yes/no): yesBackup created: /usr/local/directadmin/custombuild/options.conf.20151105102436.backup选择 WEB 服务程序 ,一般为了兼容性我们选择 apache ,如果有别的需求,建议选择nginx_apache 这个兼容性比较好,litespeed 需要商业授权,否则是免费版,限制很多.Please select webserver you would like to use (apache/nginx/nginx_apache/litespeed):apache选择 FTP 服务程序,一般我们选择 proftpd ,选择 pureftpd 可以,都是DA后台在控制生成ftp信息Please select FTP server you would like to use (proftpd/pureftpd/no):proftpd接下来选择 PHP 版本。支持 php5.3~7.0,请根据自己的需求选择PHP 运行模式,我们选择 suphp是否安装第2个版本的PHP 输入 no 我们可以在安装完毕以后使用 CustomBuild 插件进行配置多版本php.Please select default PHP version you would like to use (5.3/5.4/5.5/5.6/7.0):5.3Please select default PHP mode you would like to use (php-fpm/fastcgi/suphp/lsphp/mod_php):suphpWould you like to have a second instance of PHP installed? (yes/no): no接下来是常用组件,一般 ionCube 和 Zend Guard Loader 是必选的,输入 yessuhosin PHP安全修复组件 必选 yesphpMyAdmin 必选 yes其他几个组件是email的 根据需求自选Please select if you would like to use ionCube (yes/no):yesPlease select if you would like to use Zend Guard Loader (yes/no):yesPlease select if you would like to use suhosin (yes/no):yesPlease select if you would like CustomBuild to manage Exim installation (yes/no):noPlease select if you would like CustomBuild to manage Dovecot installation (yes/no):noPlease select if you would like CustomBuild to manage phpMyAdmin installation (yes/no):yesPlease select if you would like CustomBuild to manage SquirrelMail installation (yes/no):noPlease select if you would like CustomBuild to manage RoundCube installation (yes/no):no接下来 是否测试选择最快的镜像 yWould you like to search for the fastest download mirror? (y/n): y接下来开始自动安装 MYSQL会自动安装为 5.5版本 ,后面都可以使用 CustomBuild 插件来自定义选择版本等待15~30分钟左右就安装完毕了,安装完毕以后会提示后台登录地址和帐号密码## INSTALL_COMPLETE## ACCOUNT_INFOThe following information has been set:Admin username: adminAdmin password: Axxxxxx2Admin email: admin@testda.vvv.comServer IP: 192.x.x.xServer Hostname: testda.vvv.comTo login now, follow this link:http://192.x.x.x:2222and 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_ENDPermissions setSystem Security Tips: http://help.directadmin.com/item.php?id=247