Home WebServer PanelDirectAdmin How to restore DirectAdmin to default configuration

How to restore DirectAdmin to default configuration

by Thạch Phạm
Published: Last Updated on
A+A-
Reset

1. Overview

Usually, in the process of trying DirectAdmin, you manipulate, scratch a lot to learn about DirectAdmin and sometimes want to restore DirectAdmin to the default configuration to continue scratching… this is the tutorial for you.

2. Restore DirectAdmin to default configuration

To restore DirectAdmin to its default configuration, follow these steps:

Step 1: SSH into your DirectAdmin system

To restore DirectAdmin to the default configuration, we first need to SSH or access your VPS/server with root privileges. If you do not know how to SSH into your VPS/Server, you can refer to the following tutorial:

After successfully SSH, we continue with step 2 to check if the currently installed CustomBuild version is appropriate.

Step 2: Check the CustomBuild version

To continue restoring DirectAdmin to the default configuration, we need to check if the version of CustomBuild we are using is 2.0. To check the version of CustomBuild you are using, please check out the following short tutorial:

In case your CustomBuild version is lower than 2.0 then you need to upgrade CustomBuild 1.x to 2.0 , you can check out the following tutorial:

Here is my CustomBuild version after the latest update:

Restrict access to phpMyAdmin DirectAdmin
My CustomBuild version is ver: 2530, so it’s perfectly valid to restore DirectAdmin to the default configuration.

Step 3: Execute commands to restore DirectAdmin to default configuration

To restore DirectAdmin to its default configuration, you use the following commands:

AZDIGI Tutorial
cd /usr/local/directadmin/custombuild
./build update
./build create_options
./build all d
    

Explanation of the above commands:

  • Command 1: Move to custombuild directory.
  • Command 2: Update custombuild script.
  • Command 3: Adjust all previous settings to factory defaults, when asked if you want to back up old settings, choose yes.
  • Command 4: Reinstall all services according to the new configuration. This process can take quite a bit of your time. The long or short time will depend on the CPU performance of your VPS/Server.

Here are the pictures in the process of activating this feature of mine:

Move to custombuild folder and update custombuild script.
Commands 1 and 2: Move to custombuild directory and update custombuild script.
restore DirectAdmin to default configuration
Command 3: Adjust all previous settings to factory defaults, when asked if you want to back up old settings, choose yes. Then you will be able to choose the webserver to install, the default is apache.

If you want everything to be the same as the original, press Enter.

restore DirectAdmin to default configuration

Note: This process can take quite a bit of your time. The long or short time will depend on the CPU performance of your VPS/Server.

If you get the error: If you wish to use MySQL/MariaDB, please install MySQL/MariaDB X.X first, and then you’d be able to upgrade to a newer version of it. Please note that MySQL/MariaDB X.X migration to MySQL/MariaDB is considered a downgrade and might not work.

You can refer to the following instructions:

Then you rerun command 4. Below is the image after running command 4.

restore DirectAdmin to default configuration
So your DirectAdmin has been restored to the default configuration.

3. Summary

AZDIGI has shown you to complete the steps to restore DirectAdmin to the default configuration. Hope the article is useful to you.

Wishing you success.

If you need assistance, you can contact support in the ways below:

Đánh giá

Tham gia nhóm hỗ trợ Server - Hosting

Tham gia nhóm Hỗ trợ Server - Hosting & WordPress để cùng nhau hỏi đáp và hỗ trợ các vấn đề về WordPress, tối ưu máy chủ/server.

Tham gia ngay

Bài viết cùng chuyên mục

AZDIGI – Không chỉ là đơn vị hàng đầu trong lĩnh vực Web Hosting và Máy chủ, chúng tôi mong muốn mang lại những kiến thức bổ ích nhất và luôn cập nhật thường xuyên cho cộng đồng người đam mê thiết kế website, công nghệ,…

Vui lòng không sao chép nội dung nếu chưa xin phép. Designed and Developed by PenciDesign