Featured post

菜鸟安装directadmin全系列教程索引

1、购买directadmin授权前需要了解:

DirectaAdmin支持哪些Linux(Unix)发行版?

DirectAdmin能安装在Ubuntu上吗?

directadmin官方给yqf.me开通在线修改DA授权权限了

2、安装directadmin面板教程:

Centos安装DirectAdmin教程

Directadmin如何屏蔽ip阻止Brute Force Attack详细教程[2017.5.28更新]

Continue reading

lnmp1.4安装whmcs7.2教程


使用DA面板的朋友。也可能用到whmcs,实际上whmcs+DA,一起销售虚拟主机,也是绝配。下面写点安装whmcs的教程,展示网站参考我公司网站https://www.eeqiu.com

最低要求参考:
https://docs.whmcs.com/System_Requirements
php5.6/mysql 5.5/curl/ionCube/imap

1、先安装lnmp
yum install screen
screen -S lnmp

wget -c http://soft.vpser.net/lnmp/lnmp1.4-full.tar.gz
tar zxvf lnmp1.4-full.tar.gz
cd lnmp1.4-full
./install.sh lnmp

安装完毕lnmp后显示:
Install lnmp takes 28 minutes.
Install lnmp V1.4 completed! enjoy it.

2、安装 ionCube,whmcs需要这个。
./addons.sh install ionCube
安装完ionCube后显示
====== ionCube install completed ======
ionCube installed successfully, enjoy it!
Continue reading

Directadmin如何屏蔽ip阻止Brute Force Attack详细教程[2017.5.28更新]

官方教程参考:https://help.directadmin.com/item.php?id=380

老的教程参考:Directadmin如何屏蔽ip阻止Brute Force Attack详细教程

1)第一步,配置iptables,让block_ip.sh生效,DA官方的iptables文件适用于CentOS/Fedora,目前没有在Debian或者FreeBSD上测试,或许支持,或许不知道debian/FreeBSD。

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

/etc/init.d/iptables restart

 

Continue reading

DA面板安装有4个选项,php.mysql版本选哪个好呢

da-4-choice

DA面板,在安装过程中,有4个选项让大家选择。老易感觉,通常选1就可以了。如果保守的话,可以选3,选3的话,软件比较老,显示是生产版本。选2的话,有些过时了。选4的话,是太新了,是beta版,如果愿意尝鲜的朋友,可以选4。

下面是老易今天给客户安装DA面板,默认选1,安装完毕后的php/mysql版本,供大家参考。

da-php

directadmin面板,磁盘配额错误提示quotacheck: Cannot stat() mounted device /dev/root: No such file or directory

directadmin,da面板,磁盘配额quota问题,也算是DA面板的一个小bug了,你说他不重要吧,也重要。如果自用,当然不重要了。如果是销售虚拟主机,那就非常重要了,毕竟涉及到虚拟主机套餐的磁盘配额,如果磁盘配额失效了,那就无法控制客户是否使用磁盘超标了。

接之前的教程:http://da.yqf.me/49.html,今天帮客户安装DA面板,又遇到新的难题。

[root@jp ~]# /sbin/quotaoff -a; /sbin/quotacheck -avugm; /sbin/quotaon -a;
quotaoff: Cannot stat() mounted device /dev/root: No such file or directory
quotacheck: Cannot stat() mounted device /dev/root: No such file or directory
quotacheck: Cannot find filesystem to check or filesystem not mounted with quota option.
quotaon: Cannot stat() mounted device /dev/root: No such file or directory

敲了一段命令,结果提示找不到/dev/root这个设备。

解决方案

ln -s /dev/xvda /dev/root

/dev/xvda视具体情况修改成为实际分区。

不过,重启后你会发现那个错误又出现了。所以,要彻底解决那问题,就必须在启动时自动创建一个softlink,即我们要写一个脚本放到udev里,运行下下面这个一步到位的命令即可。

echo 'KERNEL=="xvda", SUBSYSTEM=="block", SYMLINK+="root"' > /etc/udev/rules.d/99-root-link.rules

 

directadmin面板安装后named服务无法启动

da-named

cd /etc/init.d
mv named named.backup
wget http://www.directadmin.com/named
chmod 755 named
/sbin/chkconfig named reset

最后,重新启动named服务:

service named restart

da-named2

备注:named服务器没启动成功就没启动成功吧,对大多数虚拟主机业务的朋友来说,估计也用不到DNS服务,官方教程还有如何不要开启named服务的帖子呢。http://help.directadmin.com/item.php?id=25

directadmin模板NewWorld安装记录

cd /usr/local/directadmin/data/skins/ #进入主题所在目录
wget https://github.com/tension/NewWorld/archive/master.zip #下载NewWorld主题模版压缩包
unzip master #解压缩主题压缩包
mv NeWorld-For-DirectAdmin-master NewWorld #修改主题文件夹名称
chown -R diradmin:diradmin NewWorld #设置主题所有权
rm -f master.zip #删除主题模版压缩包
exit #退出

备注:原文参考https://tension.name/Design/NewWorld-3-0-For-DirectAdmin/

newword-da1

Continue reading

directadmin文件管理器上传文件提示:确保/home/tmp已存在并且设置权限为1777

da777

directadmin文件管理器上传文件提示:确保/home/tmp已存在并且设置权限为1777,老易也是第一次遇到DA面板这个问题。通常遇到的问题,其实老易已经在教程里面发出来了。这个问题,是通过DA文件管理器上传文件的话,大概是先要让文件有个缓冲保存的地方,也就是/home/tmp,没有这个文件夹的话,建立一个。

cd /home

mkdir tmp

chmod 1777 tmp

就算大功告成了。这里面其实有个文件夹权限,用到文件特殊权限SUID,SGID啥的。

da777-2

directadmin支持安装到ubuntu吗

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

官方建议如果是debian 8的话,建议安装customer 2.0选项。

Ubuntu is based on the Debian OS. For this reason, any questions regarding which version of Ubuntu to use would fall back onto which version of Debian it uses.

Currently, DirectAdmin supports up to Debian 8.x. We recommend using CustomBuild 2.0 with Debian 8.

Info on released versions of Debian: http://www.debian.org/releases/

You can see which version of Debian the OS is running by typing:

cat /etc/debian_version
uname -m

Ubuntu 14以后的新版本,可以和debian8对应。之前的老版本大家看英文说明。

Ubuntu 14 and up use Debian 8, which is currently in beta testing. If my memory is correct, any Ubuntu version up to (and including) 13.x uses Debian 7 Versions 11.04 and older use Debian 6. Check your /etc/debian_version prior to installing DA to ensure you have the correct OS selected for your license.