DirectAdmin 安裝全記錄

1、DA授權(quán)

2、關(guān)閉selinux

使用命令如下:

sed -i “s/^SELINUX=.*/SELINUX=disabled/” /etc/sysconfig/selinux

3、升級(jí)

yum update

4、安裝必要組建如gcc編譯器等

yum -y install gcc gcc-c++ flex make perl unzip bzip2 wget automake autoconf quota libgd.so.2

5、移除多余組件

yum remove httpd php mysql

然后現(xiàn)在才是正式開始

wget http://www.directadmin.com/setup.sh #下載腳本

chmod 755 setup.sh #設(shè)定權(quán)限

screen ./setup.sh #運(yùn)行安裝腳本

真正的安裝開始了。

*** 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的client ID
Please enter your License ID : 不許看 輸入DA的License 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) : ovh.hezuo.com 輸入hostname,隨便輸入個(gè)域名
Client ID: 不許看
License ID: 不許看
Hostname: 不許看
Is this correct? (y,n) : y 核對(duì)是否正確,正確則輸入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 輸入網(wǎng)卡設(shè)備,必須和DA授權(quán)上的IP一樣的設(shè)備
Is 8.8.8.8 the IP in your license? (y,n) : y 再次確認(rèn)IP是否正確

DirectAdmin will now be installed on: Enterprise 6.4
Is this correct? (must match license) (y,n) : y 再次確認(rèn)系統(tǒng)是否正確

You now have 4 options for your apache/php setup.

1: customapache: end-of-life software. Apache 1.3, php 4, frontpage. Do not use. No support.
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
3: custombuild 1.2: Production version: Apache 2.x, php 5, 6, or both in cli and/or suphp. Defaults to php 5.3
4: custombuild 2.0 BETA: Apache 2.4, mod_ruid2, php 5.5. Can be set to use php-FPM or fastcgi.

Post any issues with custombuild to the forum: http://forum.directadmin.com/forumdisplay.php?f=61

Enter your choice (1, 2, 3 or 4): 3 從上面四個(gè)中挑選一個(gè),阿福挑選的是3號(hào),因?yàn)槟壳皝碚f3號(hào)比較穩(wěn)定 2號(hào)已經(jīng)過時(shí)了
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 問你要不要默認(rèn)的安裝CLI ,鬼才用默認(rèn)的,各種麻煩搞死你
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 問你是不是要備份配置文件,當(dāng)然輸入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,當(dāng)然CGI運(yùn)行apache 不然很麻煩
Would you like to have ionCube? (yes/no): yes 問你要不要裝ionCube,當(dāng)然要裝
Would you like to have Zend Optimizer? (yes/no): yes 問你是不是要裝Zend ,當(dāng)然要裝。不過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,當(dāng)然選擇是
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發(fā)郵件用的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 郵局,裝一個(gè)和不裝一個(gè)樣
Would you like to have an ability to install/update RoundCube webmail using CustomBuild? (yes/no): no 余下的三個(gè)都是郵局,都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等待安裝完成了。

贊(0)
版權(quán)聲明:本文采用知識(shí)共享 署名4.0國(guó)際許可協(xié)議 [BY-NC-SA] 進(jìn)行授權(quán), 轉(zhuǎn)載請(qǐng)注明出處。
文章名稱:《DirectAdmin 安裝全記錄》
文章鏈接:http://www.lrracing.com/605.html
【聲明】:國(guó)外主機(jī)測(cè)評(píng)僅分享信息,不參與任何交易,也非中介,所有內(nèi)容僅代表個(gè)人觀點(diǎn),均不作直接、間接、法定、約定的保證,讀者購買風(fēng)險(xiǎn)自擔(dān)。一旦您訪問國(guó)外主機(jī)測(cè)評(píng),即表示您已經(jīng)知曉并接受了此聲明通告。
【關(guān)于安全】:任何 IDC商家都有倒閉和跑路的可能,備份永遠(yuǎn)是最佳選擇,服務(wù)器也是機(jī)器,不勤備份是對(duì)自己極不負(fù)責(zé)的表現(xiàn),請(qǐng)保持良好的備份習(xí)慣。