All Products
Search
Document Center

Elastic Compute Service:Build a WordPress website

Last Updated:May 15, 2026

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.

image

Deployment methods

The following table lists the available deployment methods.

Mode

Method

Example operating system

Description

Manual building

Manually build WordPress (Linux)

  • Alibaba Cloud Linux 2 or 3

  • CentOS 7 or 8

Install an LNMP stack with specific component versions and deploy a specific WordPress version. Requires Linux knowledge.

Build on a Windows

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.

image

To build a WordPress website on an ECS instance:

  1. 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.

  2. Build a WordPress website.

    Select a method from the Deployment methods section based on your requirements.

    Note

    The 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.

  3. (Optional) Configure a domain name for the WordPress website.

    Using the public IP address directly compromises instance security. To improve security:

    1. Register a domain name.

      Register a domain name on Alibaba Cloud. See Register a domain name on Alibaba Cloud.

    2. 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:

      • The ICP filing process takes 1 to 22 business days.

      • For ICP filing FAQs, see FAQ.

    3. Resolve the domain name

      to the public IP address of the ECS instance. See Get started.

      Note

      For DNS resolution FAQs, see FAQ about DNS resolution issues.

Next steps

After you build a WordPress website, see the WordPress documentation to get started.