🚀 Is building a website too difficult? Let me guide you step by step—Learn about the 「Naibabiji WordPress Website Building Coaching Service」 →

How to Use Alibaba Cloud, Tencent Cloud, and Other Cloud Servers to Build a Domestic Website

Naibabiji has sharedSteps to Build Your Own WebsiteForeign trade website building tutorials, many friends may ask, what if I want tobuild a domestic Chinese website, how should I proceed?

In this article, Naiba will share with youa tutorial on how to use WordPress to build a Chinese website.

Basic Requirements for Building a Domestic Website

To build a Chinese website domestically, similar to the previously sharedwebsite building steps, we also need the following:

  1. A domain, registered from a domestic website;
  2. A server or Shared Hosting, registered from a domestic service provider;
  3. A website building program, such as WordPress;
  4. File an ICP (Internet Content Provider) filing for the domain, done on the website where you purchased the server.

About ICP filing:

Website ICP filing is a national policy. All websites hosted within mainland China require filing. Filing is now very convenient and can be handled directly online. The website where you purchase your server will have detailed filing instructions; just follow the steps. The processing time varies from a few days to over ten days.

Steps for building a domestic website

1. Purchase a domain

For filing, the domain must be registered domestically. If you have already registered it abroad, you need to transfer the domain to a domestic registrar first, or simply register a new one.

In theory, as long as the domain is registered on a domestic website, the filing can be approved. For easier management, the domain can be purchased from the same provider as the server, that is:

Domain registration method:

Go toTencent CloudorAlibaba Cloudthe activity page, then click on 'Products' in the top left navigation bar (if you don't see 'Products', click the website LOGO to return to the homepage first), select domain registration, then enter the domain you want to register to check its availability.

腾讯云域名注册入口
阿里云域名注册入口

When search results show an available domain, add it to the shopping cart, then follow the step-by-step process to complete the payment.

Domain registration is relatively simple; I believe you can figure it out. Next, let's talk about how to purchase a Cloud Server / VPS.

2. Purchase a server

Due to the special requirement of ICP filing in China, choosing a stable server provider is crucial. Basically, after filing, your website is bound to the service provider where you purchased the server (if you change providers, the ICP filing needs to be updated). Therefore, do not initially choose an unknown provider just to save money or for other reasons. Later, when you want to switch to well-known providers like Tencent Cloud or Alibaba Cloud, you may find transferring the ICP filing very troublesome (small providers might create obstacles, or you might simply find the transfer process cumbersome).

There are mainly three recommended domestic service providers:Tencent CloudAlibaba CloudHuawei Cloud

Naibabiji currently uses Tencent Cloud Lighthouse Server with a configuration of 2-core CPU, 4GB RAM, and 5M bandwidth.

How to choose among these three cloud server providers?

Simply put, choose whoever is cheaper. They all offer promotional prices for new users, so it's best to directly purchase a 3-year promotional server. We cannot predict the prices and market conditions three years later, so buy for three years first.

Tencent Cloud Server Purchase and Usage Tutorial

First, open Tencent Cloud's promotional page and select a suitable server.

腾讯云活动地址

It is recommended to choose a server term of 3 or 5 years. If no suitable configuration is available, choosing 1 year is also acceptable. If there is no discounted renewal price in the second year, register a new account to purchase again.

For configuration, it is recommended not to go below 2 cores, 2GB RAM, and 3M bandwidth. Cloud servers generally perform better than Lighthouse Application Servers.

Regarding operating system selection:

If you choose a Lighthouse Application Server, during system selection, you will see some application images, including those for Baota Panel, WordPress, etc., which facilitate later server maintenance and expansion. Naiba does not recommend choosing these application images provided by Tencent Cloud. Although they reduce your operational steps, you may encounter difficulties when you want to customize the server later because you won't know how they were installed and configured.

It is recommended to choose the system imageDebian 12for use.

Server Management:

After purchase and activation, you can see your newly activated server in the Tencent Cloud backend.

云服务器管理界面

On the server details page, find 'Reset Password' under the 'More Actions' in the upper right corner.

云服务器重置密码

Then create a complex password for the server (remember, do not use simple, predictable passwords) and restart the server.

Add Security Group Rules:

We will later install Baota Panel to manage the server, so we need to open the management port for Baota Panel; otherwise, it will be inaccessible. The method is as follows:

云服务器安全组

In the rules interface, select 'Add Rule'.

云服务器安全组规则

Fill in the source as 'all', and the protocol port as 'TCP:8888', then complete. (This port is randomly generated after the latestBaota Panel installationis complete. Please fill it in according to the actual situation.)

Additionally, Naiba cannot remember if new servers come with common rules by default. If you don't see any rules besides the one just added, manually add the common rules as well.

安全组规则一键放通

At this point, the activation and setup of the Tencent Cloud server are complete. You can proceed to the next step: installing the server environment and building the website to continue learning.

Alibaba Cloud Server Purchase and Usage Tutorial

First, open Alibaba Cloud's new user promotional page and select a suitable cloud server.

Alibaba Cloud Promotional Address

新用户优惠

Similarly, Alibaba Cloud also offers discounts for new users, so it is recommended to directly purchase a 3-year plan. If the budget allows, buying a more expensive model will definitely offer better performance than a cheaper one.

阿里云活动机型

It is recommended to choose the Debian 12 series for the operating system here. It is not recommended to directly select an application image. Although choosing a pre-installed WordPress application image reduces some operational steps, it may cause trouble during later maintenance.

Server Management:

After successfully activating the server, go to the backend, find your activated server, and click on the title to enter the server details page.

阿里云实例列表

Then, in the 'All Operations' section at the top right of the webpage, find the 'Reset Instance Password' function.

重置阿里云云服务器密码

Set a sufficiently complex, non-patterned password for the server, and then restart the server. (Remember, never enter a simple password.)

Add Security Group Rules:

On the server details page, click the 'Security Group' tab at the top, then enter the corresponding security group details.

阿里云服务器安全组

If the default security group rules are empty, manually click the 'Quick Add' button, then add access for ports 80, 443, and 22, as shown in the image below:

阿里云安全组规则

Then manually add a security group rule for the Baota Panel, screenshot as follows:

云服务器规则

Select 'Manual Add', 'Allow', Priority 1, Custom TCP, Destination 8888, Source 0.0.0.0/0, Description 'Baota Panel'. (Similarly, after the Baota Panel installation is complete, a random port will be generated. Please come back here later to re-add it.)

Then save.

At this point, the purchase and setup of our Alibaba Cloud server are complete. Next, we will begin installing the environment and building the WordPress website on the server.

3. Set up the website environment and install WordPress

To build the website environment, we need to use an SSH management software. xShell is recommended here. You can learn more details from the article below, or directly click the button below to enter the cloud storage to download the installation package.

Introduction to xShell

Download xShell Installation Package from Cloud Storage

Cloud Storage Password: 1tdg

After installing xShell, start the software, then click the 'New' button, as shown in the image below:

xshell添加服务器

Then fill in the Name, Host, and Port number, and click 'Connect'.

The server IP can be found on your Alibaba Cloud or Tencent Cloud server details page. Fill in the public IP address.

xshell服务器信息界面

There will be a security prompt for the first connection. Click 'Accept and Save'.

xshell安全提示

Then enter 'root' for the username and the password you reset earlier.

xshell登录成功

Next is the Baota Panel installation process. To avoid outdated content, please proceed to the separate Baota Panel installation tutorial page on Naibabiji.

Follow the tutorial above until the website environment is installed, then you can proceed to bind the website.

Bind Website:

On the left side of the Baota Panel, under 'Websites', select 'Add Site'. Then enter your website's domain name, for example, naibabiji.com and www.naibabiji.com (one domain per line). Select 'Create Database', then submit.

宝塔添加网站

Resolve Domain Name:

After adding the website, we need to resolve the domain name. Go back to the website where you registered the domain, find the domain resolution interface, add an A record, and fill in your server IP as the record value.

For a specific domain name resolution tutorial, please refer to the articles below:

  1. Tencent Cloud Domain Name Resolution Tutorial
  2. Alibaba Cloud Domain Name Resolution Tutorial

After adding the domain name resolution and it takes effect, when you open your website URL, you might see a prompt like the one below:

该网站暂时无法访问

This is because the domain name has not been filed (ICP备案). Therefore, we need to file the domain name.

Domain Name Filing Method:

If you purchased your server from Alibaba Cloud or Tencent Cloud, simply click the button below to go to the corresponding filing page, then click 'Start Filing' and follow the prompts.

The filing process can take anywhere from a few days to over ten days. Once approved, your website content will be accessible normally via the domain name.

Tencent Cloud Filing Alibaba Cloud Filing

Building a WordPress Website

After your filing is approved and you can access the URL normally, we can proceed to build the WordPress website.

1. Log in to the Baota Panel backend, find 'Websites', and click the directory link next to your domain name.

宝塔文件管理

2. Remotely download or upload the WordPress installation package.

宝塔远程下载文件

If choosing remote download, please enter this URL: https://cn.wordpress.org/latest-zh_CN.zip

If uploading manually, please firstclick here to download the WordPress installation package, then upload it.

After uploading the zip file, extract it. A 'WordPress' folder will appear.

Enter the WordPress folder, select all files, choose 'Cut', then click on your website's root directory (i.e., your domain name's folder)

宝塔文件管理

and paste.

Enter your website domain name in a browser, and the WordPress installation interface will appear. As shown below: (If the URL doesn't open, check if the domain name is resolved or if the firewall is blocking it)

WordPress安装界面

Then, database information will appear. The database is one you created yourself. If unsure, you can check or create a database in the Baota Panel backend under Database settings.

WordPress安装界面

Click the 'Submit' button. It will check if your database and folder permissions are correct. If correct, the installation button shown below will appear. Click 'Install Now'.

WordPress安装界面

Soon, the website information interface will appear. Enter your own website title and create an administrator account. Click the 'Install WordPress' button.

WordPress安装界面

In an instant, WordPress will be successfully installed.

WordPress安装界面

At this point, the WordPress installation tutorial is complete.

Recommended WordPress Themes for Chinese websites

ThemeforsetThe themes purchased above are mostly English themes, which are not very suitable for use within China. Here, Naiba recommends some themes suitable for domestic websites.

  1. AstraA highly customizable theme. If you want to use a page builder to design your own website, this theme is recommended;
  2. Storeys Pro If you want to create a paid resource download site, this theme is recommended;
  3. JustNewsA Chinese theme specifically designed and developed for blogs, self-media, and information-based websites;
  4. Git A powerful free WordPress theme;
  5. MNewsMinimalist News & Self-Media Theme;
  6. DUXA powerful news and self-media theme.

Recommended plugins for Chinese WordPress websites

WordPress is a foreign program, and using domestic servers for installation can sometimes lead to compatibility issues. Here are a few recommended plugins.

  1. wp china yesAccelerates activities like WordPress updates, plugin and theme installations on domestic servers;
  2. Smart SEO ToolThe best SEO plugin for Chinese websites;
  3. WP RocketThe best caching plugin;
  4. PerformanceA lightweight WordPress optimization plugin that can disable many unused features to speed up the site.

Other website building source code

Besides WordPress, there are other free website building source codes that can also help you set up a website.

  1. DiscuzFor building forums;
  2. ZblogA blog program written by Chinese developers;
  3. emlogA blog program written by Chinese developers;
  4. dedecmsA domestic CMS system, used by many websites, but not updated for a long time and has many vulnerabilities;
  5. PbootCMSA domestic CMS system for template-based website building.

🚀 Still feeling confused after reading the tutorial? Let me guide you step-by-step.

「Naibabiji WordPress Website Building Coaching Service」—From choosing a domain and buying hosting, to installing a Theme and publishing content, I「ll coach you through every step, helping you avoid detours and reach your goal directly.

👉 Learn about the Website Building Coaching Service
🔒

Comments are closed

The comment function for this article is closed. If you have any questions, please feel free to contact us through other channels.

×
二维码

Scan QR Code to Follow

AI Website Building Assistant

🤖
Hello! I am the Naibabiji AI Assistant. How can I help you?
Quick Consultation: