fbpx
How to install DirectAdmin on Ubuntu 22.04

DirectAdmin is an incredibly efficient and user-friendly web hosting control panel. It offers a graphical interface and automation tools designed to simplify the process of hosting a website. This tutorial will guide you through the process of installing DirectAdmin on Ubuntu 22.04. The steps are detailed, clear, and easy to follow, ensuring a smooth installation process.

Please be aware that this guide makes the assumption that you are familiar with the command-line interface and have a basic understanding of Linux commands. Let’s get going!

Step 1: System Update

Making sure your system is up to date is essential before we start the DirectAdmin on Ubuntu installation. By executing the following commands, you can update your Ubuntu 22.04 system:

apt-get update && apt-get upgrade -y

Step 2: Install Required Dependencies

For DirectAdmin to work properly, it needs a number of dependencies. Utilize the following command to install them:

sudo apt install wget gcc g++ make flex bison openssl libssl-dev libunbound-dev quota libcap-dev perl libaio1 libsystemd-dev

Step 3: Set Hostname

The next step is to set up your hostname. Make sure you use a fully qualified domain name (FQDN). If your domain name is example.com, for instance, your hostname can be host.example.com. In the command below, replace “host.example.com” with your actual hostname:

sudo hostnamectl set-hostname host.example.com

To verify if the hostname is correctly set, use:

hostnamectl

Step 4: Install DirectAdmin on Ubuntu

We are now prepared to install DirectAdmin on Ubuntu 22.04. First, use the following command to navigate to the ‘/usr/local/src’ directory:

cd /usr/local/src/

Next, download the setup script using wget:

wget https://www.directadmin.com/setup.sh

Make the script executable:

chmod +x setup.sh

Finally, run the script:

sudo ./setup.sh

During the installation, you will be asked several questions. Here are the recommended answers:

  1. Enter your client ID: (Enter your DirectAdmin client ID)
  2. Enter your license ID: (Enter your DirectAdmin license ID)
  3. Enter your hostname: (Enter the hostname you set earlier)
  4. Setup server as a: (Choose ‘1’ for ‘Admin’)
  5. Do you have a fully qualified hostname: (Choose ‘yes’)
  6. Please enter the word ‘yes’ to agree to the terms of service: (Enter ‘yes’)

Step 5: Access DirectAdmin on Ubuntu

To access the DirectAdmin web interface, open your web browser and go to ‘http://your_server_IP:2222’. When prompted, log in with the username and password you chose during installation.

How to install DirectAdmin on Ubuntu 22.04

Final Thoughts

Congratulations! You have successfully installed DirectAdmin on Ubuntu 22.04. From updating your system to using the DirectAdmin web interface, this guide provided a step-by-step walkthrough of the installation procedure. You can now host and manage your websites more successfully. Enjoy your web hosting!


0 Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.