Nota Acap
  • Introduction
  • Linux Guide
    • Fresh Installed Centos 7
    • Changing Network Interfaces in Centos 7
    • Lockdown SSH
    • Recursively change permission Linux
    • Proxy Server IPtables
    • Provisioning Web Server with Custombuild
    • MySQL Basic Management
    • Increasing Existing LVM Disk
  • Windows Guide
  • Application Guide
    • WEB Port IPtables Rate Limit
    • Simple Email Piping Script
    • HTTP Dead
    • Email Relay Outgoing
    • Compiling Extra PHP version (Directadmin)
    • Finding the SPAM (cPanel)
    • HTTP Basic Virtual Host
    • Update Kernel for DRBD Hosts
  • Migration Related
    • Cpanel -> Cpanel (Bulk)
    • IMAPSYNC Basic Scripts
    • Directadmin -> cPanel (Copy/Sync Emails)
    • Basic Rsync Script
Powered by GitBook
On this page

Was this helpful?

  1. Linux Guide

Provisioning Web Server with Custombuild

Using Directadmin Package Management to Provision a Web Server

  1. 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

PreviousProxy Server IPtablesNextMySQL Basic Management

Last updated 6 years ago

Was this helpful?