WordPress is a free, open-source content management system (CMS). It helps you create and manage websites, such as blogs, news sites, e-commerce sites, and social networks. WordPress has a rich library of themes and plugins to customize your site's appearance and features. This topic describes the architecture, procedure, and methods for quickly building a WordPress website.
Architecture
The following figure shows the architecture of a WordPress website built on an ECS instance.
Deployment methods
This topic describes two methods for building a WordPress website. You can select a method based on your requirements, such as the supported operating system:
Quick build: Use Resource Orchestration Service (ROS) or an Alibaba Cloud Marketplace image to quickly build a website. This method is fast and suitable for beginners.
Manual build: Build a website using the command line. This method is slower but offers more flexibility. You can install specific versions of LNMP (Linux, Nginx, MySQL, and PHP) and WordPress. This method is suitable for users with some knowledge of Linux.
The following table describes the deployment options for each method.
Method | Deployment option | Example operating system | Description |
Quickly build a WordPress website using ROS |
| You can use Resource Orchestration Service (ROS) to automatically deploy a WordPress website. For more information, see What is Resource Orchestration Service?. | |
Quickly build a WordPress website using an Alibaba Cloud Marketplace image | Alibaba Cloud Linux 3.2104 Note If you have specific operating system requirements, select an Alibaba Cloud Marketplace image for that operating system. | Alibaba Cloud Marketplace provides WordPress images that you can use to quickly build a WordPress website. You do not need to deploy a web environment. This method simplifies website creation, making it ideal for enterprise or individual users who are new to building websites with Alibaba Cloud ECS. For more information, see Learn about the image marketplace. | |
Manually build a WordPress website |
| If you want to install specific versions of LNMP (Linux, Nginx, MySQL, and PHP) and WordPress, you can use the command line. This method requires some knowledge of Linux. | |
Windows Server 2012 R2 |
Other methods for building a WordPress website are as follows:
If you want to deploy WordPress in Docker, see Use Docker Compose to deploy an application.
If you want to build WordPress using Compute Nest (based on ECS and RDS), see WordPress.
If you want to install WordPress in BT-Panel, see the following topics for instructions on how to install BT-Panel:
If you want to deploy WordPress in Docker, see Use Docker Compose to deploy an application.
Procedure
The following figure shows the procedure for building a WordPress website on an ECS instance.
The procedure is as follows:
Purchase an ECS instance.
Different website types have different ECS configuration requirements. Consider your website's scale and expected number of visitors. In most cases, you can select basic configurations for small websites. For more information, see Create an instance on the Custom Launch tab.
To learn about instance families and how to select instance types, see Instance families and Instance type selection guide.
You can upgrade or downgrade the instance to meet different business requirements. For more information, see Instance type change restrictions and checks.
Build a WordPress website.
Select a suitable deployment method in the Deployment methods section to build your WordPress website.
NoteThe deployment methods in this topic are based on the following environments:
Build a WordPress website (Linux): This method uses an LNMP (Linux, Nginx, MySQL, and PHP) environment.
Build a WordPress website (Windows): This method uses a WIMP (Windows, IIS, MySQL, and PHP) environment.
You can also choose other web servers and databases:
Web servers: such as Apache, Nginx, and IIS.
Databases: such as MySQL, MariaDB, and ApsaraDB RDS.
(Optional) Configure domain name resolution.
Accessing your WordPress website using the public IP address of the instance is less secure. We recommend that you use a domain name. To do this, perform the following steps:
Register a domain name.
You can register a domain name with Alibaba Cloud. For more information, see Register a domain name.
A domain name with an ICP filing.
If your domain name points to a website hosted on an Alibaba Cloud server in the Chinese mainland, you must apply for an ICP filing.If you want to apply for an ICP filing for the first time, see ICP filing process. For other scenarios, see ICP filing process.
NoteTo apply for an ICP filing, the ECS instance must use the subscription billing method and have a subscription duration of at least three months. If your server does not meet these requirements, perform one of the following operations:
If the ECS instance uses the pay-as-you-go billing method, change the billing method to subscription. For more information, see Change the billing method of an instance from pay-as-you-go to subscription.
If the subscription duration of the ECS instance is less than three months, renew the instance. For more information, see Renew a subscription instance.
The entire ICP filing process takes about 1 to 22 business days. The actual time may vary.
For answers to frequently asked questions about the ICP filing process, see ICP filing FAQ.
Parse the domain name.
Point the domain name to the public IP address of the instance. For more information, see Configure domain name resolution.
NoteFor answers to frequently asked questions about domain name resolution issues, see Resolution failure issues.
Use WordPress
After you build your WordPress website, see the official WordPress documentation for information about how to use it.