yum install libcap-devel openssl-devel wget -y
yum groupinstall "Development Tools" -y
mkdir -p /usr/local/directadmin
mkdir -p /var/log/httpd
mkdir -p /etc/httpd/conf
cd /usr/local/directadmin
wget -O custombuild.tar.gz http://files.directadmin.com/services/custombuild/2.0/custombuild.tar.gz
tar xvf custombuild.tar.gz
cd custombuild
./build
./build set mariadb 10.2
./build set mysql_inst mariadb
./build set webserver apache
./build set apache_ver 2.4
./build set mod_ruid2 yes
./build set php1_release 5.6
./build set php1_mode mod_php
./build set php2_release no
./build mariadb
./build apache
./build curl
./build libjpeg
./build libpng
./build freetype
./build iconv
./build mcrypt
./build php