yum -y install screen

screen -S idcbaike

yum -y upgrade

mv /usr/lib/libm.a /usr/lib/libm.a.bak
mv /usr/lib/libm.so /usr/lib/libm.so.bak
mv /usr/lib/libexpat.so /usr/lib/libexpat.so.bak

ln -sf /usr/lib64/libexpat.so /usr/lib/libexpat.so
ln -sf /usr/lib64/libm.so /usr/lib/libm.so
ln -sf /usr/lib64/libssl.so /usr/lib/libssl.so
ln -s /usr/lib64/libm.a /usr/lib/libm.a

yum install wget gcc gcc-c++ flex bison make bind bind-libs bind-utils openssl openssl-devel perl patch quota libaio libcom_err-devel libcurl-devel gd zlib-devel zip unzip libcap-devel cronie bzip2 db4-devel cyrus-sasl-devel perl-ExtUtils-Embed

yum remove httpd php mysql

vi /etc/sysconfig/selinux

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

chmod 755 setup.sh

./setup.sh

pre-install packages? y

id
id132
hostname idxxxx.ccccc
y
y
y
y
3
set n
options.conf yes
cgi
ioncube yes
zend yes
mysql yes
v 5.6
apache 2.2
followsymlinks no
exim no
dovecot no
phpmyadmin yes
webmail no no no
mirror y
===================================
cd /usr/local/directadmin/data/skins/
wget https://github.com/tension/NewWorld/archive/master.zip
unzip master
mv enhanced beifen
mv Ne* enhanced
chown -R diradmin:diradmin enhanced
cd enhanced
vi notice.html
===========================================
/usr/local/directadmin/conf/directadmin.conf
port
maxfilesize
check_subdomain_owner=0 可以用二级域名
filemanager_du=0
=====================================================
cd /var/lib/mysql/
rm -rf ib*
==============================