好久沒裝過DA了,主要是服務器上裝好的不可能沒事就拿來重裝下,最近在測試BuyVm的機器時,剛好有免費授權,于是就來安裝記錄一下,也看看官方有什么新的變化。其實DA的安裝過程還是蠻簡單的,尤其是你按照他的默認安裝不自定義安裝的話更加簡單。
記錄過程:首先我們需要一個純凈系統的服務器,在純凈的系統下安裝可以大大減少出錯幾率,也便于出錯后可以更方便的解決問題。本文就以BuyVm的LV E3-KVM 1GB為例,系統為最新的Centos 7 64 bit。
首先執行:
yum install screen
安裝完成后,直接敲命令screen就可以啟動它。screen的作用我就不說了,不是本文重點。
關閉selinux,更新系統,安裝必要組件、移除HTTPD和MySQL等共五步。
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 cyrus-sasl-devel perl-ExtUtils-Embed \ autoconf automake libtool which patch mailx bzip2-devel lsof glibc-headers kernel-devel expat-devel db4-devel
yum install psmisc net-tools systemd-devel libdb-devel perl-DBI perl-Perl4-CoreLibs xfsprogs rsyslog logrotate crontabs file kernel-headers
下載官方腳本執行安裝:
wget http://www.directadmin.com/setup.sh
chmod 755 setup.sh
./setup.sh
提示是否需要執行腳本預安裝必須的第三方軟件包? 輸入 y
*** 64-bit OS *** ***************************************************** * * 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 www Your current hostname is: localhost.localdomain Enter your hostname (FQDN) : test.veidc.com(這里不能填寫主域名) Client ID: 客戶ID License ID: 授權ID Hostname: test.veidc.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: eth0 209.141.54.66 eth1 Enter the device name: eth0(輸入上方網卡名稱) Your external IP: 209.141.54.66 The external IP should typically match your license IP. Is 209.141.54.66 the IP in your license? (y,n) : y(確認信息) DirectAdmin will now be installed on: Enterprise 7.6 Is this correct? (must match license) (y,n) : y(這是正確的嗎?(必須匹配許可證)
提示選擇默認的版本,默認的版本包括apache 2.4+php7.2 mod_ruid2 這里我們選擇 n 主要是看一下更多選擇
Would you like the default settings of apache 2.4 with mod_ruid2 and php 7.2 cli? (y/n): n
您要備份當前的選項嗎?(是/否):是
Would you like to backup the current options.conf? (yes/no): yes
選擇 WEB 服務程序? ,一般為了兼容性我們選擇 apache ,如果有別的需求,建議選擇nginx_apache 這個兼容性比較好,litespeed 需要商業授權,否則是免費版,限制很多.這里根據自己的需求選擇
Please select webserver you would like to use (apache/nginx/nginx_apache/litespeed/openlitespeed):nginx_apache
選擇 FTP 服務程序,一般我們選擇 proftpd ,選擇 pureftpd 可以,都是DA后臺在控制生成ftp信息
Please select FTP server you would like to use (proftpd/pureftpd/no):proftpd
接下來選擇 PHP 版本。支持 php5.3~7.3,請根據自己的需求選擇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/7.1/7.2/7.3):7.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
接下來是常用組件,一般 ionCube? 和 Zend Guard Loader 是必選的,輸入? yessuhosin PHP安全修復組件? 必選 yesphpMyAdmin?? 必選 yes其他幾個組件是email的? 根據需求自選
Would you like to have a second instance of PHP installed? (yes/no): no 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):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):yes Please select if you would like CustomBuild to manage RoundCube installation (yes/no):yes
接下來 是否測試選擇最快的鏡像? y
Would you like to search for the fastest download mirror? (y/n): y
接下來開始自動安裝 MYSQL會自動安裝為 7.3版本 ,后面都可以使用 CustomBuild 插件來自定義選擇版本等待15~30分鐘左右就安裝完畢了,安裝完畢以后會提示后臺登錄地址和帳號密碼
## INSTALL_COMPLETE ## ACCOUNT_INFO The following information has been set: Admin username: admin Admin password: W43^0T2hfLlVy Admin email: admin@test.veidc.com Server IP: 209.141.54.66 Server Hostname: test.veidc.com To login now, follow this link: http://209.141.54.66: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
安裝結束,現在可以登錄面板了:
默認是英文界面的,關于漢化和安裝新皮膚可以查看之前寫的一篇文章:Evolution – DirectAdmin 官方新皮膚/新模板/中文漢化






















