This is the 8th day of my participation in the First Challenge 2022. For details: First Challenge 2022.


  • 🤟 blogger introduction: CSDN, Toutiao, Zhihu and other platforms quality bloggers, the whole network fans 2W +
  • 💬 If the article is helpful to you, welcome to follow, like, bookmark (click three links) and subscribe

It’s really cool to have a personal blog site with your own characteristics! You can not only fill cups in front of your friends, but also record your learning experience on it anytime and anywhere. You don’t have to worry about losing it, which may be a plus in the interview! First take a look at the following several are you like the type?


Style 1: Meet you in the summer


Style 2: Kawaii


Pattern three: sister says purple has lasting appeal very much


Style 4: Two yuan


Personal homepage of the blogger: IT Learning Paradise

Do you want to build your own personal blog after reading it? Our theme can be more than the above examples of a few oh, there are more beautiful, more exquisite theme has not been fully enumerated, and we can also in these themes according to their own needs DIY(custom), flexible degree is very high!

You only need a server + 30 minutes to have your own personal website, what are you still hesitating?

  • Servers are expensive? No, cabbage price! Please refer to the introduction at the end of the article for details!

  • Take a long time to set up? No, I have summed up all the pits encountered in the construction process for you. If you can’t solve the problem, you can provide free help. What can you worry about? Keep reading!


Get to know WordPress

Before we start deploying WordPress, let’s take a quick look at what WordPress is and why you chose it as your personal blog (learn or use a knowledge, try to know what it is and why). If you already know or are not interested in WordPress, You can skip to the installation process below.

1. What is WordPress?

WordPress was launched in 2003 as a free and open source content management system (CMS) based on PHP and MySQL. It is by far the most widely used CMS in the world, with an estimated 60% market share among all websites built using CMS in 2019, according to relevant website statistics.

2. Why choose it as a personal blog system

In fact, WordPress was designed to be used as a blog system at the beginning. Over time, various functions have been gradually improved. At present, there are at least thousands of plug-ins, widgets and themes in its community ecosystem.

At the same time, WordPress is easy to use, has a relatively low technical threshold for operators, and is free and open source. It is licensed under the Open Source License (GPLv2 or later). It’s all supported by tools and themes in the community, so it’s perfect for a personal blog to want to build with WordPress.


2. Install WordPress

After a brief introduction to WordPress, we started to use WordPress to build our personal website. Since WordPress is based on PHP and MySQL, we need to build PHP and MySQL environments well before building it. Meanwhile, it is officially recommended to use Nginx or Apache as the server to run WordPress with the best performance and functions. So we also need to build an Nginx environment.

1, installation precautions

(1) PHP environment installation: wordpress requires 7.4 or above, 8.0 is recommended

(2) mysql environment installation: 8.0 is recommended after 5.6 is required by wordpress

(3) NGINX environment installation: no specific requirements, use a newer stable version

(4) wordpress installation, the latest version is recommended

2. Installation tutorial

1. PHP8.0 installation tutorial

MySQL8 installation tutorial

Nginx installation tutorial

1. Download the package and upload it to the server

Download address: cn.wordpress.org/download/

Upload the package to the server and decompress it: tar -xf Name of the package


2. Modify the database and key configuration in wordpress

Run the following command to copy the configuration file: cp wp-config-sample. PHP wp-config.php

(2) Modify the database information of the configuration file

Attention: after mysql8 installation generates a default password, when the first connection need input, query the default password: cat/var/log/mysqld log | grep local

(3) Modify the key information of the configuration file

The purpose of these keys is to make your wordpress site more secure, so this step is recommended.


3. Configure Nginx information

(1) Modify the nginx file to specify the root directory and proxy PHP request

# modified nginx vi nginx configuration file. The conf # specified nginx root root/usr/local/blog/wordpress/wordpress; index index.php; PHP ${fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; add_header Access-Control-Allow-Methods *; add_header Access-Control-Allow-Oriain '*'; }Copy the code

(2) Save the modification and exit: Esc + colon + wq(Save and exit the modification mode of vi)


4. Install wordpress in a browser

Matters needing attention:

/nginx -s reload./nginx -s reload./nginx -s reload

The default access permission of user root in mysql is localhost, that is, the localhost. If you want to connect to the mysql database remotely, you need to connect to the mysql database and change the host field of user root. UPDATE mysql.user SET host=’%’ WHERE user = ‘root’;

3, If “error” is displayed during database access, it may be because the default password of the database is not changed. Connect to the database and switch to the mysql database. ALTER USER ‘root@%’ IDENTIFIED WITH caching_sha2_password BY ‘password ‘; Then update the new password to the wp-config.php file and access it again.

(1) Visit http://ip or domain name /wp-admin/index.php to enter the installation guide

(2) After the configuration is complete, log in to the background

(3) Choose your own language environment

(4) Enter the background management interface

(5) Manage personal blog address

(6) Visit personal blog homepage

Note: Since the default is HTTP: If you want to access the default wordpress home page, you need to add the following information to the nginx configuration file: rewrite /wp-admin scheme:// hosthosthosturi/ permanent; Then go to the sbin directory and reload the nginx configuration file (./nginx -s reload).


Four, server acquisition

After watching the whole building process, do you feel that the building process is not complicated? Now just need a server, you can officially start, just recently the cloud manufacturer is engaged in activities, the price is cabbage compared to the usual price, if you want to buy, you can contact the blogger.


Five, series of text recommendation

  • PHP8.0 installation tutorial

  • Nginx installation tutorial

  • MySQL8.0 installation tutorial


Write at the end

Follow the steps above to access the first post from your IP address, proving that your blog site has been initially set up. If you want to make your blog stand out and cool, you need to choose your own theme and tools. In the next post, bloggers will put together a list of common questions to help you customize your WordPress site.

If you find the article helpful, please like, bookmark and follow the blogger. The following bloggers will bring more quality and quality articles.

If you want to learn more knowledge and learn more about open source projects, please click below to add a blogger and enter the technical circle (all resources in the circle are free, but you are required to have long-term interest in the circle. If you are just impulsive, you are not recommended to join, after all, the quota is limited).

Join the technical circle, in addition to free guidance for building problems, but also the first time to receive the latest industry consultation and know the professional leaders!

Personal technology blog homepage: IT Learning Paradise