DirectAdmin is one of the best alternatives of cPanel control panel due to its user friendly interface.
This article will show you how to install DirectAdmin on CentOS VPS. Please check DirectAdmin installation requirements first.
Easy steps of DirectAdmin (DA) installation for success are as follows:
Make sure your domain is running with the IP address (nameservers) before installation.
Step One
Login to your VPS root using SSH or KVM.
Step Two
Disable SELinux. This will disable the firewall.
setenforce 0 sed -i ‘s/enforcing/disabled/g’ /etc/selinux/config
Step Three
Run the pre-install commands before starting the 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 glibc-headers kernel-devel expat-devel \ psmisc net-tools systemd-devel libdb-devel perl-DBI perl-libwww-perl xfsprogs rsyslog logrotate crontabs file kernel-headers
This will ask you to confirm. Write “Y” and press enter.
Step Four
Download the DirectAdmin setup.sh file.
wget https://www.directadmin.com/setup.sh
Step Five
Change permissions of the downloaded setup.sh file to 755
chmod 755 setup.sh
Step Six
Run the script. It automatically installs everything for you, including the CSF firewall.
./setup.sh auto
The auto method will be best for most people. It can also be called as ‘./setup.sh’ without “auto” options, which requires input but allows for customization.
Important: The hostname must be a sub-domain without http, www. For example, server.hostbriz.com
System Security Tips
Follow this link https://help.directadmin.com/item.php?id=247
Enable SELinux
To enable SELinux, follow the instructions below ,
- Open the file /etc/selinux/config (You may use winSCP)
- Change option SELINUX from disabled to enforcing
- Restart the machine
- That’s all!
Leave a Reply