Huawei Cloud makes it easy to launch and use enterprise applications in the cloud. Huawei Cloud servers can be managed from a user-friendly Web control panel and easily integrated with a variety of compute, storage, networking and security services.
Bitnami provides a number of pre-packaged application images for Huawei Cloud servers, so that you can get productive with them immediately. You can access and launch these images through the Huawei Cloud Server Console.
In this tutorial, I'll walk you, step by step, through the process of creating and provisioning a new Huawei Cloud server.
Watch the following video to learn how to deploy other Bitnami applications like GitLab on the Huawei Cloud:
If you're interested in creating a personal or small business blog, chances are that you're going to use WordPress. WordPress is one of the most popular blogging platforms in the world, used on over 60 million websites (according to Wikipedia). And it is not hard to see why: WordPress is very easy to use, comes with thousands of extensions and themes, is completely free, and is open source.
In this tutorial, I'll launch a cloud server with the Bitnami WordPress Stack, which gives you a pre-configured WordPress blog that you can start using right way. But WordPress is just an example: there are hundreds of other Bitnami applications to choose from, and they're all equally easy to set up.
Here are the steps you'll follow in this tutorial:
- Register with Huawei Cloud
- Generate an SSH key pair
- Deploy WordPress on a Huawei Cloud server
- Log in and start using WordPress
The next sections will walk you through these steps in detail.
Step 1: Register with Huawei Cloud
|At the end of this step, you will have signed up for the Huawei Cloud service. If you already have a Huawei Cloud account, you may skip this step.|
Begin by creating a new Huawei Cloud account, by browsing to http://www.hwclouds.com and clicking the "Register" button at the top of the page.
You will be prompted to enter a mobile number, and a verification code will be sent to this number by SMS. Enter the verification code and a password for your account and agree to the service terms in order to proceed.
Once the account verification process is complete, your account will be created.
Step 2: Generate an SSH key pair
|At the end of this step, you will have generated an SSH key pair to access your Huawei Cloud server.|
This is also a good time to generate an SSH key pair, which you will need to log in to your cloud server. To do this:
Log in to the Huawei Cloud Server Console.
Navigate to the "Computing -> Key Pair" section.
Click the "Create Key Pair" button.
Enter a name for your key pair. Click "OK" to create the new key pair.
The new key pair will be generated and you will be prompted to download the private key in .pem format. Keep this key carefully, as you will need it to log into servers associated with the corresponding key pair.
|NOTE: You will only be able to download the private SSH key once. Store it safely as you will not be able to log in to your Huawei cloud servers without it.|
Step 3: Deploy WordPress on a Huawei Cloud server
|At the end of this step, your WordPress blog will be running on a Huawei Cloud server.|
Launching a new Huawei Cloud server with the Bitnami WordPress Stack is easy. Follow these steps:
- Log in to the Huawei Cloud Server Console.
Navigate to the "Computing -> Elastic Cloud Server" section and click the "Buy ECS" button.
On the "Buy ECS" page, choose between the "Yearly/Monthly" and "Metered" options. The former allows you to purchase the server for a fixed cost and fixed validity period (1 month), while the latter bills you on the basis of hourly usage. This tutorial uses the "Metered" option.
On the resulting page, in the "Basic Information" section, enter a friendly name for the machine and select the number of vCPUs and available memory. Select "Image Market" for the "Image Type" field and choose WordPress from the list of available images.
On the same page, in the "Network" section, ensure that an Elastic IP address is assigned to the server, so that it is reachable on the Internet, and that the chosen security group allows inbound access on ports 22, 80 and 443. Ports 80 and 443 enable access to the Web server, and port 22 enables SSH access.
TIP: If no security group exists, or if the security group does not allow inbound access on these ports, refer to the FAQ for information on how to add these ports to the security group.
On the same page, in the "Login" section, select "Key Pair" as the login mode and select the key pair created earlier. In case you haven't already created a key pair, refer to Step 2 for details.
NOTE: Remember that when logging in using an SSH key pair, your security group must be configured to allow inbound access on port 22. NOTE: It's also possible to deploy your server using a password instead of an SSH key pair. However, we recommend using an SSH key pair as this is more secure.
Leave all other settings at their default and click the "Buy Now" button.
Review and confirm the details of the server, agree to the service terms and click "Submit Application" to proceed.
The Huawei Cloud control panel will now begin the process of creating and deploying the server. A confirmation screen will appear with the current status.
Once the cloud server has been provisioned, it will appear in the list of servers in the Huawei Cloud Server Console and the status indicator will show that it's running. The server list will also display the public IP address of the server.
At this point, you should be able to browse to the cloud server, by entering the server IP address directly into your browser's address bar. You should now see your WordPress blog's home page with a sample post, as shown below.
The Huawei Cloud Server Console also includes controls to restart, shut down or delete the server. To access these, click the "More" menu icon next to the server name and select "Stop" or "Restart" to stop or restart the server, or "Delete" to delete the server permanently.
To log in to WordPress, you will need the WordPress application credentials. By default, the application username is user. To obtain the password, click the "Remote Login" menu option next to the server name in the Huawei Cloud Server Console. This will launch a new browser window with an encrypted login session, and you should find the application username and password displayed on the welcome screen, as shown below:
Step 4: Log in and start using WordPress
|At the end of this step, you will have logged in to WordPress and created a new blog post.|
To log in to the WordPress dashboard, follow these steps:
Browse to the WordPress dashboard, usually at the URL http://SERVER-IP/wp-admin.
Log in with the administrator credentials from the previous step.
You should now arrive at the WordPress dashboard, which allows you to manage posts, pages and comments; customize your blog with themes and plugins; import and export content; manage navigation menus; add or delete new user accounts; and much more.
You can now add a new post using the following steps:
Select the "Posts -> Add New" menu option to create a new post.
- Enter a title and content for the post. You can use the formatting tools at the top of the content area to format your post and add hyperlinks or images.
- Optionally, choose the format and category for your post.
Publish it immediately using the "Publish" button.
And now, when you visit your blog's front page, you should see your new post.
Congratulations! You now have a working, fully-functional WordPress blog in the cloud.
You can keep your WordPress installation up-to-date with the WordPress automatic update feature. To access this:
- Log in to WordPress using the administrator account.
Select the "Dashboard -> Updates" menu item.
Review the resulting page to see if WordPress needs an update. If an update is available, you can install it by clicking the "Update Now" button. You can also re-install WordPress if needed with the "Re-install Now" button.
To learn more about the topics discussed in this tutorial, use the links below: