收藏文章 楼主

DirectAdmin破解&开心版-类似于宝塔控制面板

版块:linux   类型:普通   作者:小绿叶技术博客   查看:1809   回复:0   获赞:1   时间:2019-11-15 14:13:58

yum -y install lrzsz # sz: 发送文件到本地

# rz: 从本地上传文件到服务器


/etc/init.d/iptables status #  查看防火墙状态:

netsh firewall set icmpsetting 8 # * 设置外机可ping: 

netsh firewall set icmpsetting 8 disable

# * 设置外机不可ping


mkdir -p /usr/local/directadmin

cp -rf update2.tar.gz /usr/local/directadmin

cp -rf setup.sh /usr/local/directadmin

tar xvf  update2.tar.gz  -C /usr/local/directadmin


yum -y update

yum -y install dos2unix patch screen unzip lftp tar quota wget gcc gcc-c++ flex bison make bind bind-libs bind-utils openssl openssl-devel perl libaio libcom_err-devel libcurl-devel gd zlib-devel zip unzip libcap-devel cronie bzip2 cyrus-sasl-devel perl-ExtUtils-Embed autoconf automake libssl.so.6 libstdc++.so.6 libtool which patch mailx bzip2-devel db4-devel libnspr4.so libssl.so.10

安装依赖库:


yum -y remove httpd* php* mysql*

# 清洁环境:


chmod 755 setup.sh # 2.开始安装

./setup.sh





1)填写服务包文件名 -> services_es60_64.tar.gz (排列下的两个也支持centos6)

2)Is this correct? (y,n) : y

3)Please enter your Client ID:任意填

4)Please enter your License ID:任意填

5)Enter your hostname (FQDN):填解析到主机IP的域名

6)Is this correct? (y,n) : y

7)Is eth0 your network adaptor with the license IP (x.x.x.x)? (y,n) :y

8)Is x.x.x.x the IP in your license? (y,n) : y 

DirectAdmin will now be installed on: Enterprise 6.9

9)Is this correct? (must match license) (y,n) : y



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: older software.  Apache 2.x, php 4, 5, or both in cli and/or suphp. Defaults to php 5.2

3: custombuild 1.2: * Recommended. simlar to 1.1, newer default versions.  Apache 2.x, php 5, 6, or both in cli and/or suphp. Defaults to php 5.3

4: custombuild 2.0 ALPHA: Not yet recommended, still in testing. Apache 2.4, mod_ruid2, php 5.4. Can be set to use php-FPM. Experts only. Requires pre-release binaries.


Enter your choice (1, 2, 3 or 4): 选择4

Would you like the default settings of apache 2.4 with mod_ruid2 and php 5.4 cli? (y/n): n

Would you like to backup the current options.conf? (yes/no): yes

Please select webserver you would like to use (apache/nginx/nginx_apache/litespeed):apache

Please select FTP server you would like to use (proftpd/pureftpd/no):pureftpd

Please select default PHP version you would like to use (5.3/5.4/5.5/5.6/7.0/7.1):5.6

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):yes

Please select additional PHP version you would like to use (5.3/5.4/5.5/5.6/7.0/7.1):7.0

Please select additional PHP mode you would like to use (php-fpm/fastcgi/suphp/lsphp/mod_php):mod_php

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

Would you like to search for the fastest download mirror? (y/n):y 

(时长:15~30分钟,具体取决网速)

4.安装完成

1)关闭防火墙或打开2222端口

2)浏览器输入ip+端口访问

* 遇到ip+2222端口无法访问的问题,解决方法:

1)先用netstat -anp命令查看2222端口是否监听,没有2222端口则在防火墙添加。

2)保证DA服务状态开启:service directadmin start

以上都没问题,参考下面两个网页

参考:http://www.youhuiba.net/2011/07/17/345.html

参考:http://www.520sz.com/directadmin-service-start.html

3)查看DA管理员账户密码:cat /usr/local/directadmin/scripts/setup.txt

4)DA使用:

首先在Admin Level添加packages,选择Manage Reseller Packages,Add Package

然后创建代理:

在Reseller Level添加packages

选择Manage User Packages,Add Package

然后创建用户:Add New User


* 改成中文版:

参考:http://www.zrblog.net/2120.html

1.转到da的语言目录下:

cd /usr/local/directadmin/data/skins/enhanced/lang

2.下载汉化包:

wget http://www.zrblog.net/sh/cn.zip

unzip cn.zip

3.编辑user.conf文件

vi /usr/local/directadmin/data/users/admin/user.conf

找到language=en  修改为language=cn


* 更改皮肤 directadmin capri

1)wget -O capri.sh http://localserver.flaxe.eu/Capri-install/capri.sh

chmod +x capri.sh

./capri.sh

2)过程选项:

1.Please choose a skin name or enter to use default[capri]? y

2.Would you like to install a secondemail-only sky(will be called Capri-mail)? n

3)更改皮肤:

登陆directadmin面板 -> 代理层 -> 皮肤管理 -> 勾选capri -> apply...


* 服务器更改ip后,怎样让DA同步

参考:https://qiaodahai.com/directadmin-how-to-change-your-server-ip-address.html

1) 提交新的许可文件

cd /usr/local/directadmin/scripts

./getLicense.sh clientID license ID

2) 更换IP

cd /usr/local/directadmin/scripts

./ipswap.sh 旧IP 新IP

3) 重启各种服务

service directadmin restart

service httpd restart

... ...

4) 重新访问DA面板,登陆

提供企业建站服务,免费网防系统,提交信息登录 http://yundun.ddoss.cn 邮箱: proposal@ddoss.cn 
回复列表
默认   热门   正序   倒序

回复:DirectAdmin破解&开心版-类似于宝塔控制面板

头像

用户名:

粉丝数:

签名:

资料 关注 好友 消息