WordPress

Updated at:

WordPress is a free and open-source content management system (CMS). It lets you easily create and manage your own website, such as a blog, news site, e-commerce store, or social network. WordPress offers a rich library of themes and plugins, making it easy to customize your site's appearance and functionality. Its ease of use and extensibility have made it one of the most popular website-building tools in the world. This topic describes how to create a WordPress service instance.

Service description

This template automatically builds a Compute Nest service. The build process takes approximately 5 minutes. The build is successful when the service status becomes Pending for Commit. The build process is as follows:

  1. Upload files and build a Compute Nest file deployment artifact.

  2. Create a Compute Nest service and associate it with the file deployment artifact.

Service architecture

The single-node architecture consists of a single ECS instance and an ApsaraDB for RDS instance. You can access the site by using its public IP address on port 8080.architecture_1.png

The high-availability architecture consists of multiple ECS instances, a Server Load Balancer (SLB) instance, and an ApsaraDB for RDS instance. You can access the site by using an Elastic IP Address (EIP) on port 8080.architecture_2.png

Billing for service build

Building this service is free. For the costs of creating a service instance, see the "Billing" section.

Permissions for RAM users

To create a service instance, you need permissions to access and create resources such as ECS and Virtual Private Cloud (VPC). If you use a RAM user to create the service instance, grant the necessary permissions to the RAM user beforehand. For detailed instructions, see Manage permissions for RAM users.

The required permissions are listed in the following table.

Permission policy name

Description

AliyunECSFullAccess

Manages all ECS resources.

AliyunVPCFullAccess

Manages all Virtual Private Cloud (VPC) resources.

AliyunROSFullAccess

Manages all Resource Orchestration Service (ROS) resources.

AliyunRDSFullAccess

Manages all ApsaraDB for RDS resources.

AliyunSLBFullAccess

Manages all Server Load Balancer (SLB) resources.

AliyunCloudMonitorFullAccess

Manages all CloudMonitor resources.

AliyunComputeNestUserFullAccess

Grants full permissions to use Compute Nest services.

AliyunComputeNestSupplierFullAccess

Grants full permissions to manage Compute Nest as a service provider.

Billing

The cost of a WordPress service instance on Compute Nest depends on the following resources:

  • vCPU and memory specifications

  • System disk type and capacity

  • Public bandwidth

  • Database configuration

The available billing methods are:

  • pay-as-you-go (hourly)

  • subscription

Estimated costs are displayed in real time when you create the service instance.

Service instance deployment

Deployment parameters

Parameter group

Parameter

Example

Description

Template Selection

Template

Multi-node

Select the template architecture type.

Service instance name

test

Specify a name for the service instance.

Resource group and region

Resource group

Default resource group

Select the resource group where you want to create the service instance.

Region

China (Hangzhou)

Select the region for the service instance. To reduce network latency, choose a region close to your users.

Billing method configuration

Billing method

pay-as-you-go

Select the billing method for the instance.

ECS instance configuration

Instance type

ecs.gn6i-c4g1.xlarge

Select an instance type based on your requirements.

System disk space

40

Specify the system disk size in GB.

Network billing method

PayByTraffic

Select a billing method for network traffic based on your requirements.

Public bandwidth

10

Specify the public bandwidth in Mbit/s.

Instance password

*******

The password must be 8 to 30 characters long and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters: ()!@#$%^&*-+={}[]:;'<>,.?/

SLB configuration

SLB instance specification

slb.s2.small

Select an SLB instance specification based on your requirements.

Database configuration

Instance edition

High-availability Edition

Select an ApsaraDB for RDS instance edition based on your requirements.

Instance specification

mysql.n2.medium.1

Select an ApsaraDB for RDS instance specification based on your requirements.

Instance storage

50

Specify the ApsaraDB for RDS instance storage size in GB based on your requirements.

Database name

wordpress

The name of the WordPress database.

Database account

wpuser

The account for accessing the WordPress database.

Database password

********

The password must be 8 to 30 characters long and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters: ()!@#$%^&*-+={}[]:;'<>,.?/

WordPress Configuration

WordPress listener port

8080

The listener port for the WordPress site.

Availability zone configuration

Availability zone

Availability Zone I

The availability zone within the selected region.

Existing infrastructure configuration

VPC ID

vpc-xxx

Select the ID of an existing VPC.

vSwitch ID

vsw-xxx

Select the ID of an existing vSwitch. If you cannot find a vSwitch, try changing the region or availability zone.

Procedure

  1. On the service details page, click the deployment link for the service instance.

  2. On the deployment page, enter the required parameters to complete the deployment.

  3. After you enter the parameters, review the pricing details. Confirm the settings and click Next: Confirm Order.

  4. View the service instance.

    After the service instance is created, deployment takes about 6 minutes. When the deployment is complete, navigate to the Service Instances page. On the My Service Instances tab, your WordPress service instance appears in the Privately Deployed Services list with the status Deployed.

  5. On the Overview tab of the service instance details page, find the Endpoints section. The WordPressUrl field shows the access URL for your site, in the format http://<Public IP>:8080. Click the link to access the deployed site. To complete the setup, open http://<Public IP>:8080/wp-admin/install.php in a browser to launch the WordPress installation wizard. In the Information needed section, provide the Site title, Username (can contain only letters, numbers, spaces, underscores, hyphens, periods, and the @ symbol), Password (a strong password is automatically generated, but you can customize it), and Your email. If necessary, select the Discourage search engines from indexing this site checkbox.