在不重装系统的情况下更新directadmin授权

有些朋友的VPS因为某些原因,IP被墙了,这样就需要换IP,换IP就需要更新DA授权,更新DA授权,要不要重装系统呢,并不必要。只需要敲下几个命令,即可完成DA授权的更新。翻译自http://help.directadmin.com/item.php?id=30

cd /usr/local/directadmin/scripts
./getLicense.sh?123 1234
service directadmin restart

其中,123是你的客户ID,1234是你的授权ID。

如果遇到提取update.tar.gz文件错误,可以运行命令:

head -n 1 /usr/local/directadmin/conf/license.key

查看核实是否IP和DA授权的IP对应一致。

如果你服务器上面有多IP,你可以指定IP和DA授权的IP一致,1.2.3.4是你的DA授权IP。

cd /usr/local/directadmin/scripts
./getLicense.sh 123 1234?1.2.3.4
service directadmin restart

也可以使用下面的脚本,批量更换IP:

cd /usr/local/directadmin/scripts
./ipswap.sh 1.2.3.4 4.3.2.1

前面是老的IP,后面是新的IP。

如果您不能访问DA官方的https(443端口)。在这种情况下,可以试试80端口更新DA授权

echo 1 > /root/.insecure_download

如果你重启directadmin,遇到如下错误:

Stopping DirectAdmin: [ FAILED ]

Starting DirectAdmin: [ OK ]

可能是PID文件没同步. 在这种情况下,可以强制重启directadmin:

killall -9 directadmin
/etc/init.d/directadmin start

如果你不能访问2222端口,请看:
http://help.directadmin.com/item.php?id=75

DirectAdmin创建虚拟主机提示Error with system Quotas

User whirl created

Details

Unix User created successfully

Error with system Quotas
setquota: Mountpoint (or device) / not found or has no quota enabled. setquota: Not all specified mountpoints are using quota.
Debug Guide
User’s data directory created successfully
Domains directory created successfully
Domains directory created successfully in user’s home

Domain Created Successfully

User added to ssh config file.

Centos安装DirectAdmin教程

Centos安装DirectAdmin教程:

1、预安装DA需要的环境:

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

2、从官方下载setup.sh安装脚本安装DirectAdmin面板:

wget http://www.directadmin.com/setup.sh
chmod 755 setup.sh
./setup.sh

3、DA面板安装过程:

 

根据屏幕提示输入Client ID,License ID,以及主机名。

 

会核实是否是授权IP,以及DA授权绑定的linux发行版。

 

选择DA面板将要安装的PHP/Apache等,默认推荐的,选3即可。

 

开始搜索最快的下载镜像,进入DA编译安装过程。

4、DA面板安装完毕:

directory /home/tmp created
directory /usr/local/directadmin/data/sessions created
directory /etc/virtual created
directory /var/spool/virtual created
directory ./data/admin/ips created
directory ./data/admin/packages created
file ./data/admin/packages.list created
ip.list written successfully
./data/admin/login.hist written successfully
./data/admin/next_ticket.number written correctly
./data/admin/services.status written successfully
tickets.list written successfully
Admin user created
## INSTALL_COMPLETE
## ACCOUNT_INFO
The following information has been set:

Admin username: admin
Admin password: abcdefg
Admin email: admin@abc.yqf.me
Server IP: 50.116.xx.xxx
Server Hostname: abc.yqf.me

To login now, follow this link:

http://50.116.xx.xxx: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

5、安装经典的Capri皮肤:

wget http://licensepad.googlecode.com/files/capri.sh;sh capri.sh

安装完毕,admin用户不显示中文,需要稍加设置下:

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

找到language=en? 修改为language=cn

DirectAdmin如何查看使用的是哪个linux发行版?

ssh进去你的VPS或者独立服务器,敲下如下的某个命令,屏幕会显示到底您使用的是哪个linux/unix发行版:

cat /etc/redhat-release
cat /etc/debian_version
uname
uname -r
uname -m

编译安装directadmin完成,如何查看DirectAdmin是安装在哪个linux/unix发行版上呢,登陆DirectAdmin面板,点授权更新,即可显示。

da-system2

看上图,显示DirectAdmin信息,编译版本是Centos5,编译日期是2012年11月28日,DA当前版本是1.42.1,最新可用版本是1.43,最近更新是2012年12月2日。

当然,安装DA完毕,你也可以自己ssh进系统,敲下:

/usr/local/directadmin/directadmin o

即可显示出同样类似的信息:

[root@da ~]# /usr/local/directadmin/directadmin o
Compiled on ‘CentOS 5.0′
Compile time: Nov 28 2012 at 02:10:56
Compiled with IPv6

DirectAdmin能安装在Ubuntu上吗?

DA授权后台是没有Unbuntu选项的,Ubuntu和Debian对应起来即可。
可以通过http://www.debian.org/releases/查看现在Debian发行版最新情况。

If my memory is correct, any Ubuntu version after (and including) 11.10 uses Debian 7, thus it’s not yet supported.Versions 9 and 10 (for the most part) use Debian 5, so things in betwen (prior to 11.10) would use Debian 6.If unsure, just install?Debian 6. Check the /etc/debian_version prior to installation.

如果内存允许,11.10(包含)以后的Ubuntu,都可以和Debian7对应,但是目前不支持Debian7;Ubutu9和Ubuntu10,和Debian5对应,Ubuntu9(10)到Ubuntu11.10之间的Ubuntu和Debian6对应。

DirectAdmin有几种价格体系?

da-price

1、DA授权,月付29美金:无限技术支持,自动升级,价格保护,无限域名,免费安装。

2、DA授权,季付108美金:无限技术支持,自动升级,价格保护,无限域名,免费安装。

3、DA授权,年付200美金:无限技术支持,自动升级,价格保护,无限域名,免费安装。

4、DA终身授权,299美金:仅提供90天技术支持,自动升级,无限域名,免费安装。

da-price-in

DirectAdmin内部购买价,其实就是人们常说的一次下单20个DA授权,49美金,终身授权。