Alibaba Cloud Simple Application Server provides multiple application images. You can use these images to create simple application servers and deploy application environments or build websites on the servers with ease. This topic describes how to build a WordPress blog by using a WordPress application image. This topic also describes how to use the WPtouch Mobile Plugin for WordPress to build a mobile WordPress blog.

Background information

For more information about how to deploy development environments and build websites, see Overview.

Step 1: Create a simple application server

  1. Log on to the Simple Application Server console.
  2. In the left-side navigation pane, click Servers.
  3. In the upper-right corner of the Servers page, click Create Server.
  4. On the Simple Application Server page, configure parameters.
    The following table describes the parameters.
    Parameter Example value Description
    Region China (Hong Kong) Select a region based on the geographical location of your business. The region cannot be changed after the server is created. Proceed with caution.
    Note Simple application servers deployed in regions outside the Chinese mainland such as the China (Hong Kong) and Singapore (Singapore) regions use international bandwidth. High network latency may occur when you access these servers from regions inside the Chinese mainland. We recommend that you select a region that is closest to the geographical location of your end users for higher access speeds of your users. For more information, see Regions and network connectivity.
    Image
    • Type: Apps Image
    • Application: WordPress
    • Version:4.9.0
    Select a tab and then select an image.
    • Apps Image: shows application images. Application images contain application environments and allow you to deploy development environments or build websites with ease.
    • OS Image: shows OS images. OS images contain only base OS. You can install applications on the OS based on your business requirements.
    • Custom Images: shows custom images. Custom images are created from snapshots of simple application servers. You can use a custom image to create simple application servers that have the same configurations. For more information, see Overview of custom images.
    Instance Plan $3.5/month Select a plan based on your business requirements. You are charged additional fees for outbound data transfers to the Internet beyond the plan. For more information about billing, see Overview.
    Data Disk 0GB Optional. To have more storage space on the simple application server, you can create a data disk of the specified size and attach the data disk to the server.
    Subscription Period 1 Month Select a subscription period for the simple application server. You can select Auto-renewal to enable the auto-renewal feature.
    Quantity 1 Specify the number of simple application servers that you want to create. The default value is 1. You can create up to 20 simple application servers at a time.
  5. Click Buy Now.
  6. On the Confirm Order page, verify the order information.
  7. In the Terms of Service section, read the General Terms and End User License and select I have read and agree to General Terms, End User License.
  8. Click Pay and follow the on-screen instructions to make a payment.
    After the payment is made, go back to the Simple Application Server console. On the Servers page, find the server that you created. After the state of the simple application server changes from Initializing to Running, click the server card to view the server details.

Step 2: Configure the application

  1. Obtain the logon information of WordPress preset in the server.
    1. On the Servers page, find the created WordPress server and click the server card.
    2. In the left-side navigation pane, choose Applications > Application Details. dasda
    3. In the WordPress Information section, click Copy to copy the command that is used to query the WordPress logon password.
    4. Click Connect.
    5. In the command line window that appears, right-click the blank space and select Paste.
      After you run the pasted command, the password of the WordPress administrator is returned. The following figure shows the details. wordpress password
    6. Select and right-click the password and then select Copy.
  2. Log on to WordPress and configure user information.
    1. Close the command line window. Then, in the WordPress Information section, click the URL to the right of Administrator Logon Address.
      wordpress admin url
    2. Enter the admin username and the copied password of the WordPress administrator, and then click Log In.
      wordpress login
    3. On the Administration email verification page, click Remind me later.
    4. In the left-side navigation pane, choose Users > All.
    5. On the Users list, move the pointer over admin and click Edit.
    6. Edit the information of the admin user and click Update Profile.
      In this example, the following parameters are complete. For information about configurations of more parameters, visit official WordPress website.
      • In the Contact Info section, configure the following parameters:
        • Email (required): Enter your email address.
        • Website: Enter the website address of WordPress.
      • In the Account Management section, configure New Password: Click Generate Password and change the password to your custom one.

Step 3: (Optional) Bind and resolve a domain name

The security of your server is compromised if you use the public IP address of the server to access the WordPress blog site deployed on the server. To ensure server security, we recommend that you access the blog site by using a domain name. If you have registered or want to register a domain name for the blog site, perform the following procedure to bind and resolve a domain name.

  1. Register a domain name.
    For more information, see Register a generic domain nameHow to register an Alibaba Cloud domain name. If you have registered a domain name, skip this step.

    Domain name example: example.com.

  2. If the website to which the domain name points is hosted on a server within a Chinese mainland region, you must apply for an ICP filing for the domain name.
  3. Optional:Resolve the domain name and make it point to the public IP address of the server.
    • If your domain name is registered with Alibaba Cloud, skip this step. After the domain name is bound, the system resolves the domain name.
    • If your domain name is not registered with Alibaba Cloud or resolved by Alibaba Cloud DNS, you can add the domain name for Alibaba Cloud DNS to resolve it. For more information, see Domain Management. You can also contact the domain name service provider, create an A record for the domain name that points to the IP address of the WordPress server, and then bind the domain name.
  4. Go back to the details page of the WordPress server. In the left-side navigation pane, choose Website > Domains.
  5. Click Add Domain Name.
  6. Enter a domain name and click OK.
    After the domain name is bound, the system checks whether the domain name is resolved.
    • If the domain name is registered with Alibaba Cloud or resolved by Alibaba Cloud DNS, click OK. The domain name is bound.
    • If the domain name is not registered with Alibaba Cloud or resolved by Alibaba Cloud DNS, the domain name remains in the Unresolved state after it is bound. You can have the domain name resolved based on the on-screen instructions in the Simple Application Server console.

Step 4: Access the website by using the bound domain names

  1. Optional: Configure the domain name in WordPress.
    If you have bound and resolved a domain name for the WordPress server, you must configure the domain name in the WordPress backend. If you have not bound a domain name to the WordPress server, you can skip this step and use the public IP address of the server to access the WordPress blog site.
    1. Log on to WordPress.
    2. In the left-side navigation pane, choose Settings > General.
    3. In the WordPress Address (URL) and Site Address (URL) fields, enter the domain name that you have bound and resolved. In this example, enter http://example.com.
      You can also enable secure HTTPS access for the domain name and use encrypted transmission and identity authentication to ensure security of data transmission. For more information, see Enable HTTPS-encrypted access. After secure HTTPS access is enabled, you must change http in the URL of the WordPress blog site to https. wordpress url
    4. Click Save Changes.
  2. Use one of the following methods to check whether the WordPress blog site can be accessed:
    • Use the domain name of the WordPress blog site. Enter the domain name that you have bound and resolved in the browser. In this example, enter http://example.com.
    • Use the public IP address of the WordPress blog site.
      1. Go back to the Simple Application Server console.
      2. On the Servers page, click the WordPress server card to go to the Overview page.
      3. In the left-side navigation pane, choose Applications > Application Details.
      4. In the WordPress Information section of the Application Details page, view the Home Address. 598
      5. Enter the home address of the WordPress blog site in the browser. In this example, enter http://121.41.XX.XX
        Notice Security risks may occur if you use the public IP address of a WordPress blog site to visit the site. We recommend that you use a domain name of the WordPress blog site to visit the site, and enable secure HTTPS access for the domain name.
    If the blog site cannot be accessed, troubleshoot the issue by using the following methods:
    • Check whether the domain name status is normal and whether the domain name resolved by DNS points to the IP address of the WordPress server. If the domain name status is abnormal or the domain name resolved by DNS does not point to the IP address of the WordPress server, contact the service provider of the domain name or the DNS service provider to troubleshoot the issue.
    • Check whether the WordPress application can run normally. If the WordPress application cannot run as expected, reset the server. For more information, see Reset a simple application server.

Step 5: (Optional) Build a mobile blog based on WordPress

After you build a WordPress blog by using a WordPress application image or a different image, you can use the WPtouch Mobile Plugin for WordPress to build a mobile WordPress blog.

  1. Install WPtouch.
    1. Log on to WordPress. In the left-side navigation pane, click Plugins. On the Plugins page, click Add New.
    2. In the upper-right corner of the Add Plugins page, enter WPtouch in the search box.
    3. In the search results, click Install Now in the WPtouch section to install WPtouch.
    4. After WPtouch is installed, go back to the Plugins page, find WPtouch, and then click Enable.
  2. Access your WordPress blog from your mobile phone.
    Open the <public IP address of the simple application server> on your mobile phone. The Mobile and Desktop buttons appear. dadasdasd962