How to Create and Optimize a Personal Blog with WordPress and EdgeOne Acceleration?
Published: 2024-07-05 07:18:29


![create-blog](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tvnu23xur4c8yzslpkw3.png)

So far, blogging remains a platform that allows anyone, from individuals to large enterprises, to reach a large number of potential customers at a meager cost. You can use a blog to write and record your daily thoughts, share your stories, engage with others, or build a community. As your blog's traffic increases, you can even earn income through your blog content. This article will help interested individuals set up their own independent personal blog.

Understanding Key Web Terminology
Considering that some friends may not be familiar with the concepts involved, let's start with a brief explanation:

When we want to access a website, the text we enter in the browser, such as "www.tencentcloud.com" is called a domain name. It is a user-friendly and memorable address that identifies a computer's electronic location for various services like websites, email, FTP, etc.

Now, what happens after we enter a domain name?

The browser doesn't know which server to contact for the domain "www.tencentcloud.com". Instead, it relies on the DNS (Domain Name System) server configured on our computer to provide an answer.
The DNS server holds the record of the server's IP address associated with "www.tencentcloud.com". An IP address is a unique identifier for a computer, and the DNS server provides this IP address to the browser.
The browser uses the IP address obtained from the DNS server to send a request to the server and retrieve the requested data. The server then sends the data back to our browser.

![request](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bhj6rpgnrv3zit8q3vls.png)

## Creating Your Personal Blog
WordPress is a blogging platform developed using PHP language. Users can set up their own websites on servers that support PHP and MySQL databases. Approximately 34% of websites worldwide use WordPress. Additionally, WordPress offers nearly 50,000 extension plugins and 5,000 theme templates, allowing users to create communities or even online stores.

### Preparation
To build a personal blog, we will need:

1. Domain Name (Can be registered on platforms like Tencent Cloud )
2. Hosting (Web server server to store website files, images, etc. For example, Tencent Cloud offers Lighthouse, a web hosting service)
3. WordPress Software (Download from cn.wordpress.org, or use the WordPress image available on Tencent Cloud servers. Refer to Tencent Cloud's CVM product documentation for more details.)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bv7t3adlodv2mll6rc89.png)

### Specific Steps
#### 1. Purchase a Domain Name
You can register a domain name on platforms like Tencent Cloud.

#### 2. Purchase a Server
You can purchase a CVM (Cloud Virtual Machine) server on Tencent Cloud.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8vy4ij0n3tmsrrqgrpxe.png)

#### 3. Domain Name Resolution
Domain name resolution involves recording the association between the registered domain name and the IP address of the hosting server on the DNS server. This allows the DNS server to provide the corresponding server IP address to the browser when a user accesses the domain name.

To perform domain name resolution, go to the domain name service provider and find the domain name resolution entry. Add DNS records with the host records as "www" and "@" respectively, and the record value as the public IP address of the hosting server.

Once the domain name resolution is complete, our domain name will be accessible.

#### 4. Log in to the WordPress Admin Dashboard
On the main page of the blog, click on the login option and enter the username and password obtained from the provided credentials to access the admin dashboard.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3p04yjxl70dtir41ektz.png)

The admin dashboard address is YourHostingIP/wp-admin.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a80o90px7yauqcg1yv9q.png)

At this point, your WordPress blog website is successfully set up. You can now write articles, publish posts, and perform various operations such as managing comments on your blog.

## Blog Optimization
### 1. [EdgeOne](https://edgeone.ai/) Acceleration Principle
Although the blog website is successfully set up, when there is a significant physical distance between users and the server, multiple network hops are required during the access process, resulting in high and unstable latency. Additionally, having a large number of image files on the blog can significantly impact the loading speed. In such cases, we can use [EdgeOne](https://edgeone.ai/) to accelerate the domain name and improve the user's browsing experience. Let's take a look at [how EdgeOne accelerates domain names](https://edgeone.ai/document/56724).

[EdgeOne](https://edgeone.ai/) adds a new network architecture layer to the existing internet network, consisting of high-performance acceleration nodes distributed globally. These nodes store business content based on certain caching strategies. When a user requests specific content, the request is routed to the nearest acceleration node, which quickly responds to the request, effectively reducing user access latency and improving availability. In simpler terms, you can think of [EdgeOne](https://edgeone.ai/) acceleration nodes as warehouses located worldwide. When a user in Singapore places an order, it is shipped from the warehouse in Singapore, and when a user in China places an order, it is shipped from the warehouse in China (these are the nearest acceleration nodes). This strategy ensures that users receive their goods faster.

### 2. Configuring [EdgeOne](https://edgeone.ai/)
  Taking Tencent Cloud's [EdgeOne](https://edgeone.ai/) as an example, you need to register a Tencent Cloud account and activate the service in the [Tencent EdgeOne Console](https://console.tencentcloud.com/edgeone). After activating [EdgeOne](https://edgeone.ai/), the configuration involves two steps: domain name integration and CNAME configuration.

First, you need to configure the **domain name integration**. In the console, enter the domain name you want to accelerate, which is the domain name of your blog platform.

IP/Domain Name: Used to integrate a single origin server. You can enter a single IP or domain name as the origin server.
Object Storage Source: Used to add Tencent Cloud COS (Cloud Object Storage) or AWS S3-compatible authenticated object storage buckets as origin servers. If the storage bucket has public read/write access, you can also use the IP/Domain Name origin server type directly.
Origin Server Group: If there are multiple origin servers, you can add them by configuring an origin server group.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wb91rsqzpyd6eja2g8zl.png)


After you add the domain name, [EdgeOne](https://edgeone.ai/) provides you with recommended configurations for different business scenarios to ensure that your business runs securely and smoothly. You can select a recommended configuration as needed and click Next to deploy the configuration, or click Skip.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h576gr6j6su01azrov7h.png)


After completing the configuration, it will appear as shown in the following image:

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/urcc45p6xj5q3nm680l5.png)


For a more detailed configuration process, refer to [Site Acceleration](https://test.edgeone.ai/blog/details/accelerate-site).

Next, let's discuss how to configure the CNAME.

After adding the domain name, [EdgeOne](https://edgeone.ai/) will provide you with a CNAME that points to the [EdgeOne](https://edgeone.ai/) node.

The steps to configure CNAME are similar to the process of domain name resolution in setting up the blog website. In the domain name service provider, find the domain name resolution entry and add a record. As shown in the image, add the domain name prefix in the host record, set the record type as CNAME, enter the CNAME domain name in the record value, and click **Confirm** to complete the CNAME configuration.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/aw62aza5erieoexxhqu6.png)

![Parameter](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f56yoah4s19334h4337l.png)

Once the CNAME configuration is complete, go back to the domain name management page and check the corresponding domain name. The prompt for CNAME not being configured should disappear. At this point, the [EdgeOne](https://edgeone.ai/) acceleration for that domain name is configured.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c29yv1bcjyob8hwmza9z.png)


The above steps cover the entire process from setting up a personal blog to configuring [EdgeOne](https://edgeone.ai/).