If you have personnel solely for managing website content but do not have professionals to build and maintain your websites, you can deploy only simple website environments. If you demand high levels of customization, availability, and elasticity for a website, you can use a sample template of Resource Orchestration Service (ROS) to quickly deploy a WordPress and phpMyAdmin environment.
Background information
WordPress is a blog platform that is developed in PHP and paired with a MySQL database. phpMyAdmin is a software tool that is written in PHP and is developed for the administration of MySQL databases in a web browser. You can use phpMyAdmin to manage MySQL databases on a web interface.
You can use the Create a Scalable WordPress Cluster Based on Resources Such as ApsaraDB for RDS sample template to create a stack that contains resources, such as a virtual private cloud (VPC), Server Load Balancer (SLB) instance, Auto Scaling resource, Elastic Compute Service (ECS) instance, and ApsaraDB RDS instance. This way, the template helps you deploy a WordPress and phpMyAdmin environment. After you perform a few steps, ROS automatically creates and configures instances based on your business requirements.
Step 1: Create a stack
Log on to the ROS console.
In the left-side navigation pane, choose
.In the top navigation bar, select the region where you want to create a stack from the region drop-down list. For example, you can select China (Hangzhou).
Find the Create a Scalable WordPress Cluster Based on Resources Such as ApsaraDB for RDS template.
Click Create Stack.
In the Configure Parameters step, configure Stack Name and the following parameters.
Parameter
Description
Example
Zone ID
The zone ID of the vSwitch.
Qingdao Zone C
Instance Type
The instance type of the ECS instance.
Select a valid instance type. For more information, see Overview of instance families.
ecs.g6.large
Image ID
The image ID of the ECS instance.
For more information, see Overview.
centos_7_04_64_20G_alibase_201701015.vhd
System Disk Category
The system disk category of the ECS instance. Valid values:
cloud_efficiency: ultra disk
cloud_ssd: standard SSD
cloud_essd: Enterprise SSD (ESSD)
cloud: basic disk
ephemeral_ssd: local SSD
For more information, see Disks.
cloud_efficiency
Instance Password
The password of the ECS instance.
Test_12****
Specifications
The specification of the SLB instance.
Select a valid specification. Instance specifications
slb.s1.small
Instance Type
The instance type of the ApsaraDB RDS instance.
Select a valid instance type. For more information, see Primary ApsaraDB RDS instance types.
rds.mysql.s1.small
Engine Version
The engine version of the ApsaraDB RDS database.
5.7
Instance Storage
The storage space of the ApsaraDB RDS instance.
Valid values: 5 to 2000. The value must be in increments of 5.
Unit: GB.
20
Database Name
The name of the ApsaraDB RDS database.
wordpress
User Name
The account of the ApsaraDB RDS database.
wpuser
User Password
The password of the ApsaraDB RDS database.
Test_13****
Click Create.
On the Stack Information tab, view the status of the stack. After the stack is created, click the Outputs tab to obtain the value of WordPressUrl.
Use the value of WordPressUrl to log on the WordPress management page.
Step 2: View resources
In the left-side navigation pane, choose Deployment > Stacks.
On the Stacks page, click the ID of the stack that you created.
Click the Resources tab to view the information about resources in the stack.
The following table describes the resources in this example.
Resource
Quantity
Resource description
Specification description
ALIYUN::ECS::Instance
1
Creates an ECS instance to deploy the WordPress service.
An ECS instance that has the following specifications is created:
Instance type: ecs.g6.large.
Disk category: ultra disk.
System disk size: 40 GB.
Public IP address: A public IP address is allocated.
ALIYUN::ECS::VPC
1
Creates a VPC to enhance network security in the cloud.
None.
ALIYUN::ECS::VSwitch
1
Creates a vSwitch in the VPC to manage instances in a zone.
None.
ALIYUN::RDS::DBInstance
1
Creates an ApsaraDB RDS database to store WordPress data.
Instance storage: 5 GB.
Default instance type: rds.mysql.s1.small.
ALIYUN::VPC::EIP
2
Creates elastic IP addresses (EIPs) to associate the EIPs with an ECS instance. This way, the instance can be accessed over the Internet.
None.
ALIYUN::ESS::ScalingGroup
1
Creates a scaling group to install multiple WordPress and phpMyAdmin services. Scaling groups automatically scale computing resources based on the scaling rules that you configure to meet your business requirements.
None.
ALIYUN::VPC::NatGateway
1
Creates a NAT gateway. A NAT gateway is an enterprise-grade Internet gateway designed to manage the inbound and outbound traffic of a VPC. NAT gateways provide the SNAT and DNAT features, a forwarding capacity of up to 10 Gbit/s, and cross-zone disaster recovery.
None.
ALIYUN::SLB::LoadBalancer
1
Creates an SLB instance to distribute network traffic to multiple ECS instances. SLB instances distribute network traffic to backend servers to improve the responsiveness and availability of your applications. You can use SLB instances to prevent single point of failure (SPOF) issues and improve the availability of applications.
Specification: slb.s1.small. You can use this specification for free.
Network type: VPC.
Note For more information about the resource charges, see the pricing schedule on the official website or the product pricing documentation.