Deploy a WordPress website on an ECS instance by using ROS, an Alibaba Cloud Marketplace image, or a manual LNMP/WIMP stack.
Architecture
The following figure shows the architecture of a WordPress website on an ECS instance.
Deployment methods
The following table lists the available deployment methods.
|
Mode |
Method |
Example operating system |
Description |
|
Manual building |
|
Install an LNMP stack with specific component versions and deploy a specific WordPress version. Requires Linux knowledge. |
|
|
Windows Server 2012 R2 |
You can also deploy WordPress in Docker. See Install and use Docker and Docker Compose.
Procedure
The following flowchart shows the procedure for building a WordPress website on an ECS instance.
To build a WordPress website on an ECS instance:
-
Create an ECS instance.
Choose an instance type based on your website scale and expected traffic. For small websites, basic configurations are sufficient. See Create an instance with Custom Launch.
-
For instance families and selection guidance, see Instance family and Instance type selection.
-
You can upgrade or downgrade an ECS instance as needed. See Pre-checks on instance type change.
-
-
Build a WordPress website.
Select a method from the Deployment methods section based on your requirements.
NoteThe methods in this topic support the following environments:
-
LNMP stack on a Linux ECS instance.
-
WIMP environment (Windows, IIS, MySQL, and PHP) on a Windows ECS instance.
Other web servers and database services are also supported:
-
Web servers such as Apache and NGINX.
-
Database services such as MariaDB and ApsaraDB RDS.
-
-
(Optional) Configure a domain name for the WordPress website.
Using the public IP address directly compromises instance security. To improve security:
-
Register a domain name.
Register a domain name on Alibaba Cloud. See Register a domain name on Alibaba Cloud.
-
Apply for an Internet Content Provider (ICP) filing for the domain name.
If the ECS instance is in a region inside the Chinese mainland, apply for an ICP filing before using the domain name. See ICP filing process.
Note-
ICP filing requires a subscription instance with at least three months of subscription duration. If your instance does not meet this requirement:
-
For a pay-as-you-go instance, convert to subscription with at least three months. See Convert pay-as-you-go to subscription.
-
For a subscription instance with less than three months, renew the instance. See How to renew a subscription ECS instance.
-
-
The ICP filing process takes 1 to 22 business days.
-
For ICP filing FAQs, see FAQ.
-
-
Resolve the domain name
to the public IP address of the ECS instance. See Get started.
NoteFor DNS resolution FAQs, see FAQ about DNS resolution issues.
-
Next steps
After you build a WordPress website, see the WordPress documentation to get started.