# Create New Website

asciicast
asciicast
Trong WP Docker, dù bạn đang muốn có một website mới hoàn toàn hay cần chuyển dữ liệu một website có sẵn về hệ thống thì bạn cần phải thực hiện tạo tác Tạo website mới trên hệ thống WP Docker trước. Việc tạo website sẽ giúp hệ thống tự động thêm các cấu hình virtual host cho webserver để website tồn tại trên hệ thống.

Khi tạo website trên WP Docker, nó cũng sẽ tự động cài đặt một website WordPress mới mặc định, nhưng đừng lo lắng mình sẽ hướng dẫn bạn chuyển dữ liệu một website đang có sẵn về hệ thống sau.

Để tạo website, bạn mở menu với lệnh wpdocker và nhập số tùy chọn tương ứng với chức năng Quản lý website.

Chọn tùy chọn Quản lý website trên menu
Chọn tùy chọn Quản lý website trên menu

Tiêp theo bạn chọn chức năng Tạo website mới.

Khi truy cập vào chức năng Tạo website mới, bạn sẽ cần nhập tên miền website cần sử dụng trên hệ thống WP Docker và chọn phiên bản PHP cần sử dụng.

Sau đó tiếp tục thao tác tạo website theo hướng dẫn trên giao diện terminal. Nếu bạn chọn hệ thống tự tạo mật khẩu và tên người dùng ngẫu nhiên thì hãy lưu lại các thông tin đó khi quá trình cài đặt hoàn tất.

asciicast
asciicast

In WP Docker, whether you want to create a completely new website or migrate an existing one to the system, you first need to create a new website on the WP Docker system. Creating a website will help the system automatically add virtual host configurations to the webserver so the website can exist on the system.

When creating a website in WP Docker, it will also automatically install a default new WordPress website, but don't worry - I'll guide you through migrating an existing website to the system later.

To create a website, open the menu using the wpdocker command and enter the number corresponding to the Website Management function.

Select Website Management option in menu
Select Website Management option in menu

Next, select the Create New Website function.

When accessing the Create New Website function, you'll need to enter the domain name for the website you want to use on the WP Docker system and select the PHP version you want to use.

Then continue with the website creation process following the instructions on the terminal interface. If you choose to let the system generate random passwords and usernames, make sure to save that information when the installation is complete.