UD
This commit is contained in:
62
README.md
Normal file
62
README.md
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
\# COMMON PRE-INSTALL COMMANDS
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
\# Pre-Install CentOS 7
|
||||||
|
|
||||||
|
yum -y install wget tar 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 cyrus-sasl-devel perl-ExtUtils-Embed \\
|
||||||
|
|
||||||
|
autoconf automake libtool which patch mailx bzip2-devel lsof glibc-headers kernel-devel expat-devel \\
|
||||||
|
|
||||||
|
psmisc net-tools systemd-devel libdb-devel perl-DBI perl-Perl4-CoreLibs perl-libwww-perl xfsprogs rsyslog logrotate \\
|
||||||
|
|
||||||
|
crontabs file kernel-headers ipset
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
\# INSTALL DIRECTADMIN ONLY CENTOS7 64BIT
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
\# Directadmin 1.604 For Centos7
|
||||||
|
|
||||||
|
wget -O setup.sh https://raw.githubusercontent.com/puarudz/DirectAdmin-1.60.2-Null/master/da-1604-centos7.sh \&\& chmod +x setup.sh \&\& ./setup.sh
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
\# OPEN PORT FOR DIRECTADMIN
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
\# Open Port 21,22,80,443,2222,3306
|
||||||
|
|
||||||
|
firewall-cmd --zone=public --add-port=21/tcp --permanent
|
||||||
|
|
||||||
|
firewall-cmd --zone=public --add-port=22/tcp --permanent
|
||||||
|
|
||||||
|
firewall-cmd --zone=public --add-port=80/tcp --permanent
|
||||||
|
|
||||||
|
firewall-cmd --zone=public --add-port=443/tcp --permanent
|
||||||
|
|
||||||
|
firewall-cmd --zone=public --add-port=2222/tcp --permanent
|
||||||
|
|
||||||
|
firewall-cmd --zone=public --add-port=3306/tcp --permanent
|
||||||
|
|
||||||
|
firewall-cmd --reload
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
@@ -711,7 +711,7 @@ if ${DOWNLOAD_BETA}; then
|
|||||||
else
|
else
|
||||||
APPEND_BETA=""
|
APPEND_BETA=""
|
||||||
fi
|
fi
|
||||||
$BIN_DIR/wget $WGET_OPTION -S --tries=5 --timeout=60 -O $DA_PATH/update.tar.gz $BIND_ADDRESS "https://raw.githubusercontent.com/puarudz/DirectAdmin-1.60.2-Null/master/directadmin-1.62.4.tar.gz"
|
$BIN_DIR/wget $WGET_OPTION -S --tries=5 --timeout=60 -O $DA_PATH/update.tar.gz $BIND_ADDRESS "https://git.wpcloud.vn/tuend/DirectAdmin-1.62.4/raw/branch/main/directadmin-1.62.4.tar.gz"
|
||||||
|
|
||||||
if [ ! -e $DA_PATH/update.tar.gz ]; then
|
if [ ! -e $DA_PATH/update.tar.gz ]; then
|
||||||
echo "Unable to download $DA_PATH/update.tar.gz";
|
echo "Unable to download $DA_PATH/update.tar.gz";
|
||||||
|
|||||||
Reference in New Issue
Block a user