2016/05/06更新:官方网站(www.directadmin.com)已全面改版,看官网放出的图片应该暗示准备发布新的官方主题了,期待中。。。到时会第一时间发布。
关于主机的面板,博主一直以来都是使用的军哥的LNMP1.2(命令行)及AMH4.2(有面板),个人用也基本没啥问题了。收费的博主前几天看到有朋友转让directadmin授权,想着体验一把,就买了,以下为折腾DirectAdmin的教程,网上的比较分散,博主会在折腾的过程中逐一收集各方面的内容。
一、面板安装
安装环境:
系统:Centos6 X86 32 位
版本:DirectAdamin1.50
内存:1G
硬盘:25G SSD
[root@server ~]# yum remove httpd* mysql* php*
#删除相关组件以免安装的时候报错
****
****
Remove 5 Package(s)
Installed size: 13 M
Is this ok [y/N]: y
#提示有5个包要删除,输入y确定删除
[root@server ~]# yum install screen
#安装Screen服务,避免网络中断之类的错误。
****
****
Install 1 Package(s)
Total download size: 484 k
Installed size: 783 k
Is this ok [y/N]: y
#输入y确定安装
[root@server ~]# screen -S da
#新建名为“da”的screen,网络中断或其它原因重新登录ssh可以用命令:screen -r da 恢复会话
[root@server ~]# 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 db4-devel cyrus-sasl-devel perl-ExtUtils-Embed autoconf automake libtool
#安装环境(依赖包)
[root@server ~]# wget http://www.directadmin.com/setup.sh
#下载官方安装脚本setup.sh
[root@server ~]# chmod 755 setup.sh
#设置setup.sh权限
[root@server ~]# ./setup.sh
#执行安装
*****************************************************
*
* 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):
*
*
Complete!
*
*****************************************************
Please enter your Client ID : ***
#输入DirectAdmin的客户ID
Please enter your License ID : ***
#输入DirectAdmin的授权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:
Do not enter http:// or www
#输入主机名称,例如:server.domain.com,请勿输入http:// 或者 www
Enter your hostname (FQDN) : server.***.com
Client ID: ***
License ID: ***
Hostname: server.***.com
Is this correct? (y,n) : y
#提示以上内容是否争取,按y表示正确
Is eth0 your network adaptor with the license IP (***.***.***.***)? (y,n) : y
#提示你该网卡对应的IP是否为授权对应的IP,按y表示确定
Your external IP: ***.***.***.***
The external IP should typically match your license IP.
Is ***.***.***.*** the IP in your license? (y,n) : y
#提示你该网卡对应的IP是否为授权对应的IP,按y表示确定
DirectAdmin will now be installed on: Enterprise 6.5
Is this correct? (must match license) (y,n) : y
#提示本机系统对应的版本与授权所对应的版本是否匹配,按y表示确定
You now have 4 options for your apache/php setup.
1: custombuild 2.0 Apache 2.4, mod_ruid2, php 5.5. Can be set to use mod_php, php-FPM or fastcgi.
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 in cli or suphp. Defaults to php 5.3
4: custombuild 2.0 BETA: Apache 2.4, php-fpm, php 5.6. Can be set to use mod_ruid2, mod_php, 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): 1
#提示你选择安装版本,我选的是1,custombuild 2.0
Would you like the default settings of apache 2.4 with mod_ruid2 and php 5.5 cli? (y/n): y
#提示你是否按以上模式安装apache及PHP服务,按y确定。
#接着就开始安装了,全部安装完成后会有以下提示
*************************************
* *
* All parts have been installed *
* *
*************************************
Type: /sbin/service httpd restart
Starting crond: [ OK ]
## REPORT_START
Welcome to DirectAdmin verion 1.50.0!
You are now about to run the install program. If DirectAdmin is already
installed, it may destroy previous data.
Here is the information given:
#以下内容为你安装完成后对应的管理员帐号等信息
Admin user: admin
Admin email: admin@***.com
Server IP: ***.***.***.***
Server IP Netmask: 255.255.255.0
Server Hostname: ***.com
Name Servers:
ns1.***.com
ns2.***.com
The following information has been set:
Admin username: admin
Admin password: **********
Admin email: admin@***.com
Server IP: ***.***.***.***
Server Hostname: ***.com
To login now, follow this link:
#默认后台访问地址为您的主机IP:2222
http://***.***.***.***:2222
二、汉化教程
先下载DirectAdmin 1.50 简体中文汉化包: 然后到ssh执行以下命令:
cd /usr/local/directadmin/data/skins/enhanced/lang/
mv en olden
tar xvzf en.tar.gz
chown -R diradmin:diradmin *
rm -rf en.tar.gz
安装完成后登录DirectAdamin后台,切换代理层身份,可以看到更换皮肤的选项,先设置成自己的,然后再设置到所有人。
三、主题安装教程
以比较流行的Capri主题为例,Capri以前是商业主题需要购买的,现在作者已开源:https://github.com/Terrorhawk/Capri
wget -O capri.sh https://raw.githubusercontent.com/Terrorhawk/Capri/master/install-script --no-check-certificate
#下载安装脚本
chmod +x capri.sh
#更改脚本权限
./capri.sh
#安装
还有部分设置方面的教程待更新