系统CentOS-6.6 32版;
第一步:息壤云挂载硬盘
yum -y update pstree yum -y install dos2unix patch screen unzip lftp tar quota ln -s /usr/lib/libssl.so /usr/lib/libssl.so.6 ln -s /usr/lib/libcrypto.so /usr/lib/libcrypto.so.6 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 yum install gcc gcc-c gcc-c++ yum -y 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 libstdc .so.6 libnspr4.so libssl.so.6 yum install openssl098e glibc.i686 libstdc.i686 yum install libssl.so.6 libcrypto.so.6 yum install libstdc++.so.6 wget http://static.qinhai.us/soft/directadmin/DA1.44.3.zip unzip DA1.44.3.zip mkdir -p /usr/local/directadmin tar xvf update2.tar.gz -C /usr/local/directadmin bash setup.sh 89 history 90 history 100 91 history 100 >1.txt
yum -y update
yum -y install dos2unix patch screen unzip lftp tar quota
ln -s /usr/lib/libssl.so /usr/lib/libssl.so.6
ln -s /usr/lib/libcrypto.so /usr/lib/libcrypto.so.6
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
yum -y install gcc gcc-c gcc-c++ 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 libstdc .so.6 libnspr4.so libssl.so.6 openssl098e \
glibc.i686 libstdc.i686 libssl.so.6 libcrypto.so.6 libstdc++.so.6
echo "libxslt:1.1.29:a129d3c44c022de3b9dcf6d6f288d72e" >> /usr/local/directadmin/custombuild/custom_versions.txt
wget http://static.qinhai.us/soft/directadmin/DA1.44.3.zip
unzip DA1.44.3.zip
mkdir -p /usr/local/directadmin
tar xvf update2.tar.gz -C /usr/local/directadmin
bash setup.sh
wget -O capri.sh http://localserver.flaxe.eu/Capri-install/capri.sh
chmod +x capri.sh
./capri.sh
yum install perl-libwww-perl perl-Time-HiRes perl-Crypt-SSLeay perl-LWP-Protocol-https perl-IO-Socket-SSL perl-GDGraph perl-Socket6 perl-IO-Socket-INET6
yum install python-setuptools && easy_install pip
pip install shadowsocks
yum install python-setuptools && easy_install pip
reboot
pstree
cat /usr/local/directadmin/scripts/setup.txt
ls
cd /home/admin/admin_backups
chown admin:admin *
vi /usr/local/directadmin/conf/directadmin.conf
service directadmin restart
cd /usr/local/php53
ls
cd sockets
ls
cd ../
ls -ls
cdmod 777 sockets
chmod 777 sockets
cd sockets
ls
vi ikallsva.sock
ls
ls -ls
chown ikallsva:apache ikallsva.sock
ls -ls
chmod 777 ikallsva.sock
ls -ls
cat webapps.sock
ls
vi webapps.sock
ls -ls
pwd
cd /usr/local/php/etc/php-fpm.conf
cat /usr/local/php/etc/php-fpm.conf
cd cd /usr/local/directadmin/custombuild/
cd /usr/local/directadmin/custombuild/
./build clean
./build update
./build php
./build all d
ls
vi options.conf
./build update
./build clean
./build php n
vi options.conf
./build update
./build clean
./build php n
./build apache
vi options.conf
cat /usr/local/directadmin/scripts/setup.txt
./build rewrite_confs
vi options.conf
apache -v
httpd -V
pwd
cd /usr/local/php53/sockets/
ls
pwd
cd /usr/local/directadmin/custombuild
top
vi options.conf
./build nginx
service directadmin restart]
service directadmin restart
vi options.conf
./build update
./build apache
ls
vi versions.txt
pwd
cd /usr/local/directadmin/data/templates
ls
vi virtual_host.conf
vi user_virtual_host.conf
vi httpd.conf
cd /usr/local/directadmin/data/templates
cp virtual_host2*.conf custom
cd custom
mkdir custom
cp virtual_host2*.conf custom
cd custom
ls
vi virtual_host2.conf
./bulid apache
cd /usr/local/directadmin/custombuild
./build rewrite
./build rewrite_confs
rm -rf /usr/local/directadmin/data/templates/custom
./build rewrite_confs
ls ~/
vi /usr/local/directadmin/data/templates/user_virtual_host.conf
./build rewrite_confs
./build apache
./build set php1_release 7.0
./build php
./build rewrite_confs
ls
vi options.conf
./bulid php
./build php
./build rewrite_confs
top
cd /home/admin
ls
cd admin_backups
ls
ls -ls
top
vi /usr/local/directadmin/conf/directadmin.conf
echo "action=directadmin&value=restart" >> /usr/local/directadmin/data/task.queue; /usr/local/directadmin/dataskq d2000
cd /usr/local/directadmin/custombuild
./build rewrite_confs
cd /usr/local/directadmin/custombuild
./build update
./build letsencrypt
service directadmin restart
/usr/sbin/repquota /
df -hT
vi /etc/fstab
cat /etc/fstab
/usr/sbin/repquota /
history|awk '{$1="";print substr($0,2)}' >1.txt
cat 1.txt
history|awk '{$1="";print substr($0,2)}' >1.txt
第三步:由于主机分配的是内网,设置Lan IP.
4) As of DA 1.43.0+, you’ll be able to link the LAN IP to your public IP using the new Linked IP feature.
With this feature, you’d do the following:
– Add the LAN IP to DA’s IP manager. Don’t assign it to any Users or Domains.
– View the details of the external IP: Admin Level -> IP Manager -> Click the public/external IP.
– Link the internal IP to the external IP: Select the LAN IP from the drop down.
– Only select Apache, do not select DNS
5) Add the following value to your directadmin.conf, and restart DA:
lan_ip=192.168.1.2
where you’d replace 192.168.1.2 with the LAN IP value that should be used for outbound connections.
6) You must disable popb4smtp via the exim.conf if all incoming IPs are your router’s IP (always the same). If inbound IPs are external, then this is not requierd. If you type “who”, check which IP shows up as your inbound ssh IP. If it’s the router IP, disable pophosts.
最新评论