Introduction to the
This tutorial describes how to build and manage a WordPress site on a lightweight application server.
Background knowledge
Lightweight Application Server (AS) Lightweight application server (AS) is a next-generation computing service for single-node applications. It provides one-click application deployment, one-stop domain name resolution, website publishing, security, operation and maintenance (O&M), and application management services. The application scenarios are as follows:
- Build small websites;
- Set up a personal blog;
- Establish forum community;
- Building knowledge efficiency management tools;
- Establishing a personal learning environment;
- Build small e-commerce sites;
- Build the development environment quickly.
WordPress is a blogging platform developed in THE PHP language. You can use WordPress to set up your own website and also serve as a content management system (CMS) on a server that supports PHP and MySQL databases.
Domain name resolution
Domain name resolution is a distributed database where domain names and IP addresses map to each other. The cloud resolution DNS of Aliyun points the domain name of the website to the server address of the website by applying A record to realize the effect that users can open the website.
Buying a server
Buy a lightweight application server and choose a WordPress application image.
1. Log in to the lightweight application server and click in the upper right corner to create the server.2. Configure a lightweight application server and click Buy Now.The following table describes the detailed configuration information about the lightweight application server in this example:
Configuration items | Configuration values |
---|---|
regional | East China 1 (Hangzhou) |
Image type | Application of the mirror |
Application of the mirror | WordPress 4.8.1 |
Set configuration | CPU 1 core memory 1 gb SSD 20GB bandwidth 1 MBPS |
The data set | 0GB |
Purchase quantity | 1 |
The purchase time | 1 month |
3. Check I have read and agreed, then click To Pay. | |
4. Select a payment method and click Pay. | |
Configure the application
You have obtained the initial password for logging in to the WordPress website and changed the original password.
1. Open theLightweight application server consoleIn the server list, click the server to be configured.2. Click theApplication managementUnder theApplication details.3. Click under the WordPress informationcopyButton.Under the WordPress message, the administrator account is admin.
By copying the commandsudo grep wordpress_admin_passwd /root/env.txt
View the initial password on the console. 4. Click remote Connection in the upper right corner.4. Run the replicated command to view the initial password.
In the command window that is displayed, right-click. Select and click Paste. Press Enter to enter.
6. Copy the initial password of the administrator.
Select the initial password. Right-click copy to copy the administrator initial password B0Fd346bea7b.
In 7.WordPress Application DetailsOn the WordPress page, click the administrator login address.
- Enter the user name and password, and click Login.
The user name is admin.
The password is the initial password of the administrator.
If the login is successful, the WordPress configuration page is displayed.9. Change the login password.
For security purposes, you are advised to change the initial login password.
A. Click the user on the left navigation bar, move the mouse pointer to the profile picture of admin, and click Edit. The profile setting page is displayed.Copy the code
B. Click Generate password.C. Enter a new password in the text box and click Update Profile.For this article, enter Aa1bc! 23Qaz, new password can be set by yourself.
At this point, the administrator login password is changed. The administrator uses the new password to log in next time.
Set the domain name
You can use the domain name to access the website by binding the domain name. If no domain name is available, see the domain name help document to register, authenticate, and record the domain name. This example is performed when a domain name is available. If you do not need to access the domain name, skip this step. Note: the new website needs to be registered to normal access.
1. InWordPress Application DetailsIn the navigation tree on the left, click the domain name under Domain name.
- Click to add the domain name.
- Enter the domain name, and click OK.
Note: The domain name can be resolved in the following three cases based on the domain name type.
-
Ali Cloud registered domain names can be directly resolved.
-
Using Aliyun to resolve DNS domain names can be resolved directly.
-
Non-cloud resolved DNS.
Refer to the Domain Name Resolution Documentation to configure the DNS service. Refer to the DNS Service Modification Document to host the domain name to Aliyun for domain name resolution. You can set domain name resolution here later. The domain name for this example is: guojf.fun.
For non-cloud DNS domain name resolution, perform sub-steps 4, 5, and 6. For cloud DNS domain name resolution, go to Step 4.
4. LoginCloud resolution DNS console, locate the domain name to be resolved, and click resolution Settings in the corresponding operation column.The domain name for this example is: guojf.fun.
Note: The domain name must be authenticated by the real name.
5. Click Start.6. Enter a record value and click OK.Record the value as the IP address of the web site to be mapped.
If information similar to the following figure is displayed, cloud resolution is successfully configured.
Test visit site
Test accessing the website and using the domain name to access the website.
- On the WordPress application details page, click the home address link under WordPress information.
2. Scroll down to check the website.Note: The firewall function on a lightweight application server allows users to enable or disable ports on the server. Check whether the corresponding port is open.
The default ports enabled by the firewall are as shown in the following figure:3. Replace the access address with the domain name. This example domain name is:www.guojf.fun.