Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to build a personal blog by WordPress

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article is about how to build a personal blog on WordPress. The editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.

WordPress sets up a personal blog

Use WordPress to build a personal blog station today. Cut the crap and start doing it.

1. Windows tutorial

1. Environmental preparation

Phpstudy [1] (a software that integrates a range of tools such as PHP MySQL Redis Apache Nginx to simplify server configuration.)

WordPress [2] (since it's an open source project, let's just clone it.)

Phpstudy installation, all the way to the next step.

Word Press download, if git is installed, just enter the following command directly.

Git clone https://github.com/WordPress/WordPress.git

If there is no git, open the website (https://github.com/WordPress/WordPress)

Click the green Code, then click Download ZIP, and then decompress to get the source code.

two。 Build an environment

Open phpstudy and open apache Note: if the port is occupied, the solution:

1.netstat-ano (cmd execution, find the PID that takes up the port process, open the task manager, click finish, and then start apache) to create a website:

Domain name: (wordpress.myblog.com) (this thing is made up by yourself, and cannot be accessed through the public network (of course, you can also use some coquettish operations). If you want to access it through the public network, you need the public network ip, and publish an article about purchasing servers and domain names another day)

Port: the default is 80. If you change other ports, you need to add the port number when the browser accesses it. Ex: http://wordpress.myblog.com:10000

Root directory: whatever, I'll use the default.

Make an interview, it's a success. (if it doesn't come out, refresh it) install and deploy wordpress, unpack the downloaded source code, and move it to the root directory of the website. Open http://wordpress.myblog.com/wp-admin/setup-config.php( in the browser and change the domain name to your own)

Click the let's go database name: WPmyblog (feel free to create it later, which is the same as creating the database later)

Database user name: wuhen (feel free to be consistent with the database created later)

Password: 123456 (fill in it yourself, which should be consistent with the database created later)

First install, start mysql, and create the corresponding database. Phpstudy integrates mysql, so just install it. I have mysql 8.0.12 installed here. Create the database in accordance with the previous form. Click submit to see this page. Click Run., to wait. Fill in the information and click Install to succeed! Congratulations on your successful entry by clicking Log in. Here you can change the language to Chinese, or you can change the theme. Go and explore by yourself, Ollie.

II. Linux tutorial

1. Environmental preparation

Ubuntu16.04 [3] (see my blog for tutorials)

The LAMP environment is installed by default when installing the system.

two。 Environment build execution command, switch to root

Sudo su

Execute the command and check the ip. My ip is 192.168.190.132

Ifconfig

When you visit 192.168.190.132 in the browser, you can see the default page with the root directory at / var/www/html/, which is provided by index.html. Execute commands, switch directories

Cd / var/www/html

Then execute the command to bring down the WordPress clone. For some reason, clone is a little slow.

Git clone https://github.com/WordPress/WordPress.git

Visit http://192.168.190.132/WordPress/wp-admin/install.php, and the next operation is similar to windows, focusing on creating a database. Create the database, execute the command, enter the MySQL password, and then connect.

Mysql-u root-p

Execute the command to create the database (the database name is arbitrary, just fill in the same as the installation, the database defaults to root, and the password is set by yourself when installing Ubuntu16.04 [4])

Create database WPmyblog

Enter the command to see if it is successful. Enter exit to exit after success.

Show databases

This is how WordPress builds a personal blog. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report