WP template: WordPress tutorial part I: installation, WordPress download and installation tutorial

6 minutes
three hundred and thirty-two
zero

In the last tutorial, we have prepared the running environment required by the WordPress program on the local computer. Again, the real online release will be introduced in a set of special courses in the future. Therefore, we will continue to rely on this local environment for installation. In addition, we will manually edit the configuration file to install. As for the reasons and advantages, I will explain them in the following content. All right, let's get started!

1、 Download WordPress

First of all, you can download English or Chinese websites on the official website of WordPress. But considering the operating habits of most people, we choose to download them on Chinese websites. Open the official website, click "Get WordPress" on the top right corner of the home page, and then find the "Download WordPress" button on the page to download. Note: Do not select ". tar. gz" for local environment installation. Of course, if you need to download a specific historical version, you can also click "All Releases" on the page to download it.

2、 Manually Edit Profile

After the installation package is downloaded, generally many tutorials are directly deployed to the site directory and operated step by step according to the WordPress graphical installation wizard. Relevant configurations are carried out in the visual interface, which is also an officially recognized method of WordPress. However, the official also provided another installation method of manually editing the configuration file. Some people may say that since the first method is simpler, why introduce the second method?

This involves the authority and security issues in the production environment. Because if you install using the first method, you need PHP to have write permission to the root directory of the website. However, for the sake of site security in the production environment, you need to turn off PHP's write permission to the root directory of the website again after the installation is completed (only the write permission to individual directories is reserved). If you forget to modify it, you will leave a security risk. The installation method of manually editing files does not require PHP to have write permission to the root directory of the website. It can be authorized at one time without having to modify back and forth. The process is simpler and the probability of errors is reduced. (We will have a special tutorial on Linux empowerment.) So, in order to be closer to the production environment, we will introduce the installation method of manually editing the configuration file.

First, unzip the downloaded installation package to any folder on the local computer, find a file called "wp config sample. php", copy it and rename it "wp config. php".

Then, open the "wp-config.php" file with a code editor, find "define (DBNAME, databasenamehere)", and change the "databasenamehere" to the database name you created in advance; Find the "define (DBUSER, usernamehere)" and change the "usernamehere" to the database user name you created in advance; Find the "define (DBPASSWORD, password here)", change the "password here" to the password you set in advance, and then save the file. (See the previous tutorial for database creation and configuration)

3、 Deploy the edited installation package to the site directory

If it is an online environment, we generally need to compress and package the folder containing wp-config.php again, and then upload it to the directory of the specified site for decompression. Since we are now operating in the local environment, we can directly copy the contents of the entire folder to the site directory. However, since the copying speed of multiple small files is relatively slow, we recommend compressing them first, copying them, and then decompressing them. After completion, the structure of the site directory is shown in the following figure.

4、 Fill in the basic information of the site

Now, you can enter the site link in the browser. In PhpStudy, if the site file is directly placed in the "WWW" directory, the browser can access "localhost"; If you have created a subdirectory, just access "localhost/directory". Then, the browser will automatically jump to "localhost/directory/wp admin/install. php", fill in the "site title", "user name", "password" and "your e-mail address" to be created in the open page, and then click "Install WordPress". Note that the "user name" and "password" here are to create an administrator and password for the site, not the same as the previous database user name and password.

5、 Log in to the management background

After the installation is successful, click "Login" in the jump page. In the future learning process, please remember that the login link in the background of the WordPress site is "localhost/directory/wp login. php". Of course, you can also access "localhost/directory/wp admin". If you do not log in, you will automatically jump to the login link.

Well, the above is the whole process of installing the WordPress site in the local environment, and we also adopted the method of manually editing the configuration file. Next, we will officially start the journey of using WordPress. Where do you start? I think it is appropriate to start with the theme. Because after we are familiar with the installation and switching of themes, we can select and install a theme suitable for our own project among thousands of themes. In this way, all future operations and designs will be based on this theme, and the style will be relatively fixed. So, in the next tutorial, we will introduce WordPress Theme Please do not miss the operations related to.

Welcome to join us!

This article is written by: Chief Editor Published on Software Development of Little Turkey , please indicate the source for reprinting: //hongchengtech.cn/blog/696.html
Kuke_WP editor
author

Related recommendations

1 year ago (2024-02-20)

Industry Fit! Preferred element of WMS warehouse management system, wms warehouse software

Enterprise managers often think that warehouses are inefficient, high cost places, and belong to heavy asset operations. With the development of enterprise business, if the warehouse needs to be expanded in traditional ways, the cost is relatively high. At the same time, it also faces problems such as lack of operating experience. In the operation link, the process of warehouse, allocation, human resource matching and management is very complicated, and the team's professional ability is also highly required
seven hundred and eighty-three
zero
1 year ago (2024-02-19)

Supply chain billing system management (I): system overview, what are the supply chain management fees

In recent years, with the continuous development of e-commerce industry and increasing business, everyone has started to distribute goods online, and the supply chain billing system needs to manage more and more things. How to manage the billing system? The author summarizes some contents about settlement based on his own practical experience, hoping to enlighten you. After working on the warehouse management system for several years, I was transferred to work as a supplier
five hundred and fifty-four
zero
1 year ago (2024-02-19)

Multi merchant system management - store background design, what is the meaning of multi merchant classification

Simply understood, multi merchants are a large mall. The platform can manage merchants who settle in the mall. The merchants who settle in the mall have independent backstage. They can log in and add goods to the shelves by themselves, manage stores by themselves and other information functions. Then how to design the backstage of the store? Let's see the author's sharing. I hope it can help you. 1、 Introduction The backstage of the store is an important part of the e-commerce platform
six hundred and forty-six
zero
1 year ago (2024-02-19)

Jiangyang District of Luzhou City took the lead in the city's full coverage training on domestic waste classification management regulations, Luzhou waste treatment

Source: Original Draft On January 10, the People's Congress of Jiangyang District, Luzhou City and the District Government jointly carried out a training on the regulations of the Regulations on the Classified Management of Domestic Waste in Luzhou City (the Regulations for short), and invited Lei Zhengyun, the chairman of the Legislative Affairs Committee of the Municipal People's Congress, to give a live lecture, so as to guide the comprehensive and systematic grasp of the contents and legal functions and responsibilities of the Regulations, deeply understand the specific specifications of the Regulations, and quickly set off
three hundred and seventeen
zero
1 year ago (2024-02-19)

Simeng CMS (smcms) content management system, Simeng Central Primary School

SMCMS (Simon CMS) is a content management system developed based on the microbee http rapid development framework. Product development follows the concept of simplicity, security, high concurrency and efficiency. Enterprise level web content management software for high-end users is designed to help users solve the increasingly complex and important web content creation, maintenance, publishing and response
three hundred and sixty-one
zero
1 year ago (2024-02-19)

Does the website have to install a content management system?, What apps are needed to install software on the website

1: The role of the website is to let companies or enterprises display their own windows, but also to let more customers or potential customers know their work and products. Through the website, customers can understand their products and services more intuitively, and can also provide more services to meet customer needs. 2: The role of the content management system The content management system can help
four hundred and fifty-six
zero

comment

0 people have participated in the review

Scan code to add WeChat

contact us

WeChat: Kuzhuti
Online consultation: