Build a WordPress website
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
Choose a deployment method based on the operating system of the instance:
Quick deployment: Use Resource Orchestration Service (ROS) or an Alibaba Cloud Marketplace image to deploy WordPress. Suitable for beginners.
Manual deployment: Install an LNMP stack (Linux, NGINX, MySQL, and PHP) with specific component versions and deploy a specific WordPress version. This method is slower but more flexible, and requires Linux knowledge.
The following table lists the available deployment methods.
Mode | Method | Example operating system | Description |
Deploy WordPress with ROS |
| ROS automates the WordPress deployment. See What is Resource Orchestration Service? | |
Deploy WordPress with an Alibaba Cloud Marketplace image | Alibaba Cloud Linux 3.2104 Note If you have specific OS requirements, choose a Marketplace image for that OS. | Alibaba Cloud Marketplace provides pre-built WordPress images that skip manual web environment setup. Suitable for users new to ECS. See Alibaba Cloud Marketplace overview. | |
Manual building |
| Install an LNMP stack with specific component versions and deploy a specific WordPress version. Requires Linux knowledge. | |
Windows Server 2012 R2 |
Other ways to deploy WordPress:
Deploy WordPress in Docker. See Deploy applications with Docker Compose.
Deploy WordPress with Compute Nest (based on ECS and RDS). See WordPress.
Install WordPress on aaPanel. To install aaPanel, see:
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. If you want to apply for an ICP filing for the first time, see ICP Filing for the first time. For other scenarios, see ICP filing process.
NoteICP 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.