Archive

Posts Tagged ‘DirectAdmin’

directadmin终身正版授权购买找yqf.me

May 21st, 2013 2 comments

directadmin终身正版授权购买请找yqf.me,我能给大家承诺的是不跑路,有QQ千人群:185393826做售后保障。至于为啥搞起了directadmin授权的生意,一方面是群里朋友需要,另一方面也赚点小钱儿(真的是小钱儿,无限次修改IP,终生授权,只要343元,成本价大家也心知肚明,49美金,yqf.me也就是赚个辛苦费,体力活儿,帮大家在线修改下DA的授权信息)

directadmin教程站http://da.yqf.me,本来想专门搞个域名来做directadmin(DA面板)教程的,但是想来想去,还是用二级域名得了,不收录就不收录吧,DA教程,我会逐步完善。

以下附:

DA官方给我开通的即时修改DA授权(IP和系统)立即生效权限。谢谢DA官方对我的支持。

da-online

以下是DA批量授权截图,目前账户有22个DA终身授权。

da-online2

Directadmin如何屏蔽ip阻止Brute Force Attack

August 4th, 2012 No comments

自从安装了DA面板后,Brute Force Attack暴力破解DA后台密码就没有停止过,或许见多了就不怪了,但是老是收到诸如此类的信息:Brute-Force Attack detected in service log from IP(s) 106.187.43.249,总不是一件让人很愉快的事儿。
directadmin官方有教程,如何屏蔽ip阻止Brute ForceAttack

http://help.directadmin.com/item.php?id=380
1)The first part of thie guide will outline how to setup the actual firewall for the block_ip.sh to use.  Note that we’re not able to offer any support for this setup, so use it at your own risk.    Also, this file is written for a CentOS/Fedora type system and has not been tested on Debian or FreeBSD (it may work on Debian, not sure).

cd /etc/init.d
mv iptables iptables.backup
wget http://files1.directadmin.com/services/all/iptables
chmod 755 iptables

*** Note that it opens ssh on port 22, so make sure you either change it manually, or have physical access to your server if you’re running ssh on some other port.
You’ll want to test this out to ensure it works for you:

/etc/init.d/iptables restart

to make sure you can still connect to everything ok.  If not, you may need to head to the datacenter to shut it off (partly why we don’t offer support for firewalls)
2) The second step is to install the block_ip.sh so you can create a file that lists the IPs to be blocked.   A sample block_ip.sh can be found here.
To install this file, type:

cd /usr/local/directadmin/scripts/custom
wget http://files1.directadmin.com/services/all/block_ip.sh
wget http://files1.directadmin.com/services/all/show_blocked_ips.sh
wget http://files1.directadmin.com/services/all/unblock_ip.sh
chmod 700 block_ip.sh show_blocked_ips.sh unblock_ip.sh

This should activate the button in DA at:
Admin Level -> Brute Force Monitor -> IP Info -> Block IP
This particular block_ip.sh script will check to ensure that the IP you’re blocking does not already exist in the list.
It will also generate the output from “iptables -nL” which should show you everything that is current blocked in the list. (iptables -nL is also output in the event the IP is already blocked, so you can see your iptables list without doing anything)
3)Create the empty block list and exempt list files:

touch /root/blocked_ips.txt
touch /root/exempt_ips.txt

4)This last step is optional and should only be used after you’ve tested the above setup for a while to get comfortable that you’re not going to block yourself.   The block_ip.sh is only used for an active “click” by the Admin, it does not automate blocking.  To automate blocking, create:

/usr/local/directadmin/scripts/custom/brute_force_notice_ip.sh

and in that script, add:

#!/bin/sh
SCRIPT=/usr/local/directadmin/scripts/custom/block_ip.sh
ip=$value $SCRIPT
exit $?;

and chmod the brute_force_notice_ip.sh to 700.


If you’re running FreeBSD with ipfw, you’d skip steps 2 and 3, and instead, add the following code to the file:

/usr/local/directadmin/scripts/custom/block_ip.sh
#!/bin/sh
echo “Blocking $ip with ipfw …<br>”;
ipfw add deny ip from $ip to any
exit $?

and don’t forget to chmod the block_ip.sh to 755.

DirectAdmin下安装Zend Opitimizer

August 4th, 2012 No comments

DirectAdmin下手动安装Zend Opitimizer:

cd /usr/local/src
mkdir zend
cd zend
wget http://downloads.zend.com/optimizer/3.3.9/ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz
tar -xzvf ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz
cd ZendOptimizer-3.3.9-linux-glibc23-i386
cd data
cd 5_2_x_comp
cp ZendOptimizer.so /usr/local/lib/ZendOptimizer_5.2.so

注意cd 5_2_x_comp ,这里是因为我使用php 5.2.7所以选择这个,如果你是5.1或者其他版本就要进入相关目录才行
修改配置文件

vi /usr/local/lib/php.ini
在最后面加入
[zend]
zend_optimizer.optimization_level=15
zend_extension=/usr/local/lib/ZendOptimizer_5.2.so

然后重启下httpd服务,用phpinfo()查看,发现了
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
    with Zend Optimizer v3.3.9, Copyright (c) 1998-2009, by Zend Technologies

Directadmin磁盘配额权限设置

August 4th, 2012 No comments

Directadmin安装完毕,建立reseller或者user的时候,提示如下:
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.
其实Directadmin官方网站的帮助里面已经提到了解决办法,Disk Usage is showing 0.00,仔细把这个帖子读读,一定能找到解决方法。http://help.directadmin.com/item.php?id=42

DA面板如何建立子域名

August 4th, 2012 No comments

访问http://linode.laoyihost.com看看什么情况,当然前提是你得把子域名解析好。

DA面板站点转向功能可实现301跳转

August 4th, 2012 2 comments

DA面板本身已经带了301跳转的功能,很多朋友可能对这个不熟悉,下面以把http://www.laoyihost.com跳转到http://www.yihost.net为例,说明DA面板如何实现301跳转。

linode卖CPanel控制面板授权吗?

May 24th, 2012 No comments

linode卖的是裸机,不含任何服务器控制面板,你可以在自己的Linodes上面安装有授权的服务器控制面板,比如CP,DA。

No, but you can obtain and install control panels on your Linode.