1.Disable Selinux
- nano -w /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
2.Update Centos
- yum update -y
- reboot
3.Run the following command to install
- yum 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 cyrus-sasl-devel perl-ExtUtils-Embed autoconf automake libtool which patch mailx bzip2-devel lsof psmisc net-tools systemd-devel libdb-devel perl-DBI xfsprogs rsyslog logrotate crontabs -y
4.Download the install script and run
- wget http://www.directadmin.com/setup.sh
- chmod 755 setup.sh
- ./setup.sh
- Would you like to install these required pre-install packages? y
- Please enter your Client ID : 123456
- Please enter your License ID : 78901234
- Enter your hostname (FQDN) : vps.netway.co.th
Enter your hostname (FQDN) : vps.netway.co.th
Client ID: 123456
License ID: 78901234
Hostname: vps.netway.co.th
- Is ens160 your network adaptor with the license IP (192.168.10.57)? (y,n) : y
- DirectAdmin will now be installed on: Enterprise 7.5
Is this correct? (must match license) (y,n) y - Would you like the default settings of apache 2.4 with mod_ruid2 and php 5.6 cli? (y/n): y
- Would you like to search for the fastest download mirror? (y/n): y
Success Install Directadmin
The following information has been set:
Admin username: admin
Admin password: nOy4YNYDtz
Admin email: admin@vps.netway.co.th
Server IP: 192.168.10.57
Server Hostname: vps.netway.co.th
To login now, follow this link:
http://192.168.10.57:2222
5.ConfigServer Security & Firewall (csf)
- cd /usr/src;rm -fv csf.tgz;wget https://download.configserver.com/csf.tgz;tar -xzf csf.tgz;cd csf;sh install.sh;perl /usr/local/csf/bin/csftest.pl
- nano -w /etc/csf/csf.conf
Edit Csf
# lfd will not start while this is enabled
TESTING = "0"
# Restrict syslog/rsyslog access to RESTRICT_SYSLOG_GROUP ** RECOMMENDED **
RESTRICT_SYSLOG = "3"
*WARNING* URLGET set to use LWP but perl module is not installed, reverting to HTTP::Tiny
- yum install perl-libwww-perl net-tools perl-LWP-Protocol-https -y