If you do not have the technical skills to build and manage a website in-house but do have a content management team, you can build simple websites. If you have high requirements such as customization, availability, and scalability for your website, you can use a Resource Orchestration Service (ROS) template to install WordPress and phpMyAdmin.

Background information

WordPress is a blog platform that is developed in the PHP programming language and uses 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. phpMyAdmin allows users to manage MySQL databases by using a web interface.

This topic describes how to install WordPress and phpMyAdmin. This topic also describes how to create a stack that contains resources such as virtual private clouds (VPCs), Server Load Balancer (SLB) instances, Auto Scaling groups, Elastic Compute Service (ECS) instances, and ApsaraDB RDS instances. In this topic, the Create a Scalable WordPress Cluster Based on Resources Such as ApsaraDB RDS sample template is used. ROS automatically creates and configures instances based on your business requirements. No manual operation is required.

Step 1: Create a stack

  1. Log on to the ROS console.
  2. In the left-side navigation pane, choose Templates > Sample Templates.
  3. In the upper-left corner of the page, select the region in which you want to create a stack from the drop-down list.
  4. Find the Create a Scalable WordPress Cluster Based on Resources Such as ApsaraDB RDS template.
  5. Click Create Stack.
  6. In the Configure Template Parameters step of the Use New Resources (Standard) wizard, configure Stack Name and the following parameters.
    ParameterDescriptionExample
    Bucket NameThe name of the Object Storage Service (OSS) bucket. The name must be unique within an Alibaba Cloud account in a region. application-wordpress-oss
    Bucket Mount PointThe mount path of the OSS bucket. /ossbucket
    Zone IDThe zone ID of the vSwitch. Qingdao Zone C
    Instance TypeThe instance type of the ECS instance.

    Select a valid instance type. For more information, see Overview of instance families.

    ecs.g6.large
    The ID of the image.The image ID of the ECS instance.

    For more information, see Image overview.

    centos_7_04_64_20G_alibase_201701015.vhd
    Disk CategoryThe data disk category of the ECS instance. Valid values:
    • cloud_efficiency: ultra disk
    • cloud_ssd: standard SSD
    • cloud_essd: enhanced SSD (ESSD)
    • cloud: basic disk
    • ephemeral_ssd: local SSD

    For more information, see Disks.

    cloud_efficiency
    Data Disk SizeThe data disk size of the ECS instance.

    Valid values: 20 to 32768.

    Unit: GB.

    40
    Data Disk Mount PointThe data disk mount target of the ECS instance. /data
    Instance PasswordThe password that is used to log on to the ECS instance. Test_12****
    SpecificationsThe specifications of the SLB instance.

    Select a valid instance specification. For more information, see Instance specifications.

    slb.s1.small
    Instance TypeThe 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
    EngineThe type and version number of the database engine. MySQL-5.6
    Instance TypeThe network type of the ApsaraDB RDS instance. Valid values:
    • Internet
    • Intranet
    Intranet
    Instance StorageThe storage space of the ApsaraDB RDS instance.

    Valid values: 5 to 2000. The value must be in increments of 5.

    Unit: GB.

    10
    Database NameThe name of the ApsaraDB RDS database. wordpress
    User NameThe username that is used to connect to the ApsaraDB RDS database. wpuser
    User PasswordThe password that is used to connect to the ApsaraDB RDS database. Test_13****
    Total Data DiskThe total number of data disks that are attached to the ECS instance. 1
  7. Click Create.
  8. Click the name of the created stack. On the page that appears, click the Stack Information tab to view the stack status. After the stack is created, click the Outputs tab to query the information about PhpAdminUrl.
  9. Access PhpAdminUrl and log on to the PHP management console.

Step 2: View resources

  1. In the left-side navigation pane, click Stacks.
  2. On the Stacks page, click the stack that you created.
  3. On the page that appears, click the Resources tab to view resources.
    The following table describes the resources that are used in this example.
    ResourceQuantityDescriptionSpecifications
    ALIYUN::ECS::Instance1Creates an ECS instance to install WordPress.
    • Quantity: 1
    • Instance Type: ecs.g6.large
    • System Disk Category: cloud_efficiency
    • System Disk Size: 40 GB
    • Allocate Public IP Addresses: Yes
    ALIYUN::ECS::VPC1Creates a VPC to enhance network security. None
    ALIYUN::ECS::VSwitch1Creates a vSwitch in the VPC to manage instances within a zone. None
    ALIYUN::RDS::DBInstance1Creates an ApsaraDB RDS database to store WordPress data.
    • Instance Storage: 5 GB
    • Instance Type: rds.mysql.s1.small
    ALIYUN::OSS::Bucket1Creates an OSS bucket to store service data of phpMyAdmin. None
    ALIYUN::VPC::EIP2Creates an EIP to associate with an ECS instance. This way, the instance can be accessed over the Internet. None
    ALIYUN::ESS::ScalingGroup1Creates a scaling group to install multiple WordPress and phpMyAdmin services. Scaling groups scale computing resources based on the scaling rules that you configure to meet your business requirements. None
    ALIYUN::VPC::NatGateway1Creates a NAT gateway. A NAT gateway is an enterprise-grade Internet gateway that controls the traffic flowing to and from a VPC. NAT Gateway provides SNAT and DNAT features, a maximum forwarding capacity of 10 Gbit/s, and cross-zone disaster recovery. None
    ALIYUN::SLB::LoadBalancer1Creates an SLB instance to distribute traffic to multiple ECS instances. SLB distributes network traffic to backend servers to improve the responsiveness and availability of your applications. You can use SLB to prevent service interruptions caused by single points of failure (SPOFs) and to improve the availability of applications.
    • Specifications: slb.s1.small (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.