Build a WordPress website

Updated at:

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

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

Quick WordPress deployment

Deploy WordPress with ROS

  • Ubuntu 20.04/22.04

  • CentOS 7.7/7.8/7.9

  • Alibaba Cloud Linux 3.2104

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

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

Other ways to deploy WordPress:

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

      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.