Provisioning Web Server with Custombuild
Using Directadmin Package Management to Provision a Web Server
Install few recommended software by Directadmin to use Custombuild
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 xfsprogs rsyslog logrotate crontabs file -y
2. Create custombuild directory and download custombuild
mkdir /usr/local/directadmin
cd /usr/local/directadmin/
wget http://files.directadmin.com/services/custombuild/2.0/custombuild.tar.gz
tar -xvf custombuild.tar.gz
3. run ./build.conf one time and then edit options.conf to recommend options :
vim options.conf
4. Edit only below sections as below, do not touch any other options
secure_php=yes
opcache=yes
php_ini=yes
php_timezone=Asia/Kuala_Lumpur
mariadb=10.3
mysql_inst=mariadb
http_methods=GET:HEAD:POST:OPTIONS
5. Now we can start installing Apache and PHP.
Follow the installation flow to avoid any errors :
./build apache
./build iconv
./build freetype
./build curl
./build libpng
./build libjpeg
./build mcrypt
./build php
6. Once done, if you require Database services just run command below :
./build mariadb
Last updated
Was this helpful?