How to set up DirectAdmin on Webdock
Last updated: September 1st 2023
Introduction
DirectAdmin is a web hosting control panel providing a graphical interface and automation tools to simplify server and account management. Features include E-mail, FTP, DNS and web management, Statistics, Apache configuration, and more.
Prerequisites
- A fresh Webdock cloud Ubuntu Focal (Ubuntu 20.04) instance.
- You have shell (SSH) access to your VPS.
- DirectAdmin licence (see the account creation steps below).
Create a new shell user and SSH to your server
Create a new shell user. After creating the shell user, on the right side, enable "Passwordless Sudo" and apply the settings.
DirectAdmin licence creation
Create an account on DirectAdmin and create a new licence.
While creating the licence, set the Operating System to Linux 64-bit static. Set IP address to your Webdock server IP address.
For the hostname, set it to hostname.domain.com. For example, if your domain is example.com then your hostname can be directadmin.domain.com, where directadmin is the hostname.
Installing dependencies
After creating the licence WebSSH into the Webdock server.
Become root user by executing:
$ sudo su -
Update packages and upgrade with:
# apt-get update
# apt-get upgrade
Install dependencies:
# apt install wget gcc g++ make flex bison openssl libssl-dev \
perl perl-base perl-modules libperl-dev libperl4-corelibs-perl \
libwww-perl libaio1 libaio-dev zlib1g zlib1g-dev libcap-dev cron \
bzip2 zip automake autoconf libtool cmake pkg-config python \
libdb-dev libsasl2-dev libncurses5 libncurses5-dev libsystemd-dev \
bind9 dnsutils quota patch logrotate rsyslog libc6-dev libexpat1-dev \
libcrypt-openssl-rsa-perl curl libnuma-dev libnuma1
Installing DirectAdmin
Install DirectAdmin by running the below command.
# bash <(curl -Ss https://www.directadmin.com/setup.sh || wget -O - https://www.directadmin.com/setup.sh) 'your-licence-key'
Replace your-licence-key with your DirectAdmin licence key (do not omit the quotes). If you set the IP of your server already while purchasing the licence, but do not know the licence key just enter auto (with the quotes). The DirectAdmin script automatically takes care of the authorization.
The installation takes a long time. Be patient. Once done you will be shown login credentials. Please copy them to a safe place.
Now visit http://YOUR-SERVER-IP:2222 to manage your server. To log in, use the login credentials you saved in the previous step.
Conclusion
The installation is now complete and you can log into the control panel to manage your server.
Make sure you point your hostname URL and all the other domains you create in the DirectAdmin panel to your Webdock server's IP address.
Note: At the moment, Filesystem Quotas won't work as our filesystem is ZFS. So, things like setting limits on users' disk space usage are not possible.
If you have any issues with the setup feel free to comment below or contact Webdock support.
Related articles
-
How to install OpenLiteSpeed on Webdock
In this article we show you how you can install the OpenLiteSpeed web server on Ubuntu Jammy.
-
How to Deploy your First Node.js Application on your Ubuntu Web Server
-
How to set up WireGuard on your Webdock Server
This article details how you can quickly and easily install WireGuard on your Webdock Server.
-
How to set up OpenVPN on your Webdock Server
This article details how you can quickly and easily set up a VPN on your Webdock server.
-
How to Install and configure aaPanel on Ubuntu
-
How to install azuracast on Webdock
This guide shows you how to work around certain issues when installing azuracast on Webdock.
-
How to set up Ploi on Webdock
This article details the steps you need to go through in order to install Ploi on a Webdock server.
-
How to install and create pipelines in Jenkins
-
Basic WordPress site setup with aaPanel
In this guide, we will install and setup a basic WordPress site with aaPanel.
-
How to use Nginx as reverse proxy and secure connections with SSL certificates
Using Nginx to proxy pass your site with SSL security.
-
Setting up monitoring with Netdata on your Webdock server
-
How to Setup Python Web Application With Flask Gunicorn and Nginx
A simple Python Flask web app hosting with Gunicorn and Nginx
-
How to Daemonize an Application with Systemd
Using systemd to autostart your application on system startup.
-
Set-up New Relic Monitoring on Your Webdock Server
This guide provides step-by-step instructions to install New Relic to monitor your VPS.
-
Getting Started with Ruby on Rails on Webdock
In this guide, we will show you how to get started with Ruby on Rails on your Webdock server
-
How to Install VaultWarden on Your Webdock Server
-
How to Install the Latest Version of HTOP on Ubuntu Server
Instructions to install latest htop package on your Ubuntu server
-
How to Install ImageMagick 7 on Ubuntu LEMP/LAMP stacks
Simple instructions to install ImageMagick 7 along with the PHP extension
-
A Quick Guide to Installing Rust on Ubuntu
-
How To Install Proxmox on Your Webdock Server
This article provides instructions on how to install Proxmox on your Webdock server
-
How To Run Nextcloud on Your Webdock Ubuntu Server
Instructions to Install Nextcloud on your server with Docker
-
The Ultimate Guide to Setting Up Mastodon server
A detailed guide with instructions to set up Mastodon on your Webdock server
-
A Guide To Setting Up Mindustry Game Server on Ubuntu
Step-by-step instructions to set up your own Mindustry server
-
A Guide to Installing ERPNext on Your Webdock Server
Step-by-step instructions to install ERPNext - a resource planning software - on your server
-
A Beginner's Guide to Installing Apache Kafka on Ubuntu
Detailed instructions to get Kakfa running on Ubuntu!
-
A Quick Guide To Installing Rocket Chat on Ubuntu
Instructions to install Rocket Chat on your Ubuntu server
-
How to Install Ghost CMS on a Webdock Server
Easily install Ghost CMS on your Webdock server with these instructions!